Part Number Hot Search : 
A8586 MB91F46 T520AE 00020 NTE749 Q67006 25ZNIL 83C51
Product Description
Full Text Search
 

To Download PSB2115F Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ics for communications isdn pc adapter circuit ipac psb 2115 version 1.1 data sheet 11.97 ds 1
psb 2115 revision history: current version: 11.97 previous version: preliminary data sheet 03.97 page (in previous version) page (in new version) subjects (major changes since last revision) for questions on technology, delivery and prices please contact the semiconductor group offices in germany or the siemens companies and representatives worldwide: see our webpage at http://www.siemens.de/semiconductor/address/address.htm. edition 11.97 published by siemens ag, hl ts, balanstra?e 73, 81541 mnchen ? siemens ag 1997. all rights reserved. attention please! as far as patents or other rights of third parties are concerned, liability is only assumed for components, not for applications, processes and circuits implemented within components or assemblies. the information describes the type of component and shall not be considered as assured characteristics. terms of delivery and rights to change design reserved. due to technical requirements components may contain dangerous substances. for information on the types in question please contact your nearest siemens office, semiconductor group. siemens ag is an approved cecc manufacturer. packing please use the recycling operators known to you. we can also help you C get in touch with your nearest sales office. by agreement we will take packing material back, if it is sorted. you must bear the costs of transport. for packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for any costs incurred. components used in life-support devices or systems must be expressly authorized for such purpose! critical components 1 of the semiconductor group of siemens ag, may only be used in life-support devices or systems 2 with the express written approval of the semiconductor group of siemens ag. 1 a critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the failure of that life-support device or system, or to affect its safety or effectiveness of that device or system. 2 life support devices or systems are intended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain human life. if they fail, it is reasonable to assume that the health of the user may be en- dangered.
psb 2115 psf 2115 table of contents page semiconductor group 3 11.97 1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 1.2 logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 1.3 pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 1.4 pin definitions and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 1.5 functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 1.6 system integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 2 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 2.1 b-channel operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 2.1.1 non-auto mode (modeb: mds1, mds0 = 01) . . . . . . . . . . . . . . . . . . . . . . .32 2.1.2 transparent mode 1 (modeb: mds1, mds0, adm = 101) . . . . . . . . . . . . .33 2.1.3 transparent mode 0 (modeb: mds1, mds0, adm = 100) . . . . . . . . . . . . .33 2.1.4 extended transparent modes 0, 1 (modeb: mds1, mds0 = 11) . . . . . . . .33 2.1.5 receive data flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 2.1.6 transmit data flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 2.1.7 serial interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 2.1.7.1 clock mode 5 (time-slots) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 2.1.7.2 data encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 2.1.8 fully transparent transmission and reception . . . . . . . . . . . . . . . . . . . . . . .39 2.1.9 cyclic transmission (fully transparent) . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 2.1.10 continuous transmission (dma mode only) . . . . . . . . . . . . . . . . . . . . . . . . .40 2.1.11 receive length check feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 2.1.12 data inversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 2.2 d-channel operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 2.2.1 layer-2 functions for hdlc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 2.2.1.1 message transfer modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 2.2.1.2 reception of frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 2.2.1.3 transmission of frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 2.3 control procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 2.3.1 activation initiated by exchange (lt-s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 2.3.2 activation initiated by terminal (te/lt-t) . . . . . . . . . . . . . . . . . . . . . . . . . . .52 2.3.3 deactivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 2.3.4 d-channel access control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 2.3.4.1 tic bus d-channel control in te . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 2.3.4.2 s-bus priority mechanism for d-channel . . . . . . . . . . . . . . . . . . . . . . . . . . .56 2.3.4.3 s-bus d-channel control in tes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.3.4.4 s-bus d-channel control in lt-t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 2.3.4.5 d-channel control in the intelligent nt (tic- and s-bus) . . . . . . . . . . . . . . .59 2.3.5 iom-2 interface channel switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65
psb 2115 psf 2115 table of contents page semiconductor group 4 11.97 2.4 s/t interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 2.4.1 operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 2.4.2 s/t-interface coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 2.4.3 s/t-interface multiframing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 2.4.4 s/t transceiver control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 2.4.4.1 mon-8 commands (internal register access) . . . . . . . . . . . . . . . . . . . . . . .72 2.4.4.2 mon-8 configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74 2.4.4.3 mon-8 loop-back register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 2.4.4.4 mon-8 iom-2 channel register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 2.4.4.5 mon-8 sm/ci register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 2.5 layer-1 functions for the s/t interface . . . . . . . . . . . . . . . . . . . . . . . . . . .80 2.5.1 analog functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 2.5.2 s/t interface circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 2.5.2.1 s/t interface pre-filter compensation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 2.5.2.2 external protection circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 2.5.3 receiver functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 2.5.3.1 receiver characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 2.5.3.2 level detection power down (te mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . .88 2.5.4 s/t transmitter disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 2.5.5 timing recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 2.5.6 activation/deactivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 2.5.7 activation indication via pin acl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 2.5.8 terminal specific functions (te mode only) . . . . . . . . . . . . . . . . . . . . . . . . .94 2.5.9 test functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 2.5.9.1 b-channel test mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 2.5.9.2 d-channel and s/t interface test mode . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 2.6 microprocessor interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 2.6.1 operation modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 2.6.2 register set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 2.6.3 data transfer mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 2.6.4 interrupt interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 2.6.5 dma interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104 2.6.6 fifo structure for b-channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 2.6.7 timer modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 2.6.8 software reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112 2.7 iom-2 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 2.7.1 iom-2 frame structure / timing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 2.7.2 iom-2 interface connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 2.7.3 microprocessor access to b and ic channels . . . . . . . . . . . . . . . . . . . . . . .125
psb 2115 psf 2115 table of contents page semiconductor group 5 11.97 2.7.4 monitor channel handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129 2.7.4.1 handshake procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 2.7.4.2 monitor procedure timeout (tod) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .136 2.7.4.3 mon-1, mon-2 commands (s/q channel access) . . . . . . . . . . . . . . . . . .137 2.7.4.4 mon-8 commands (register access) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138 2.7.5 c/i-channel handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139 2.7.6 tic bus access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141 2.8 auxiliary interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143 2.8.1 mode dependent functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143 2.8.2 pcm interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146 2.8.2.1 pcm lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146 2.8.2.2 clock generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .150 2.8.2.3 switching of timeslots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152 2.9 oscillator circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154 3 operational description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155 3.1 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155 3.2 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158 3.3 interrupt structure and logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163 3.3.1 b-channel interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165 3.3.2 d-channel interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .167 3.3.3 auxiliary interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173 3.4 b-channel data transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174 3.4.1 data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174 3.4.2 data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180 3.5 d-channel data transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183 3.5.1 hdlc frame transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183 3.5.2 hdlc frame reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185 3.6 control of layer-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .188 3.6.1 activation/deactivation of iom-2 interface . . . . . . . . . . . . . . . . . . . . . . . . . .188 3.6.2 activation/deactivation of s/t interface . . . . . . . . . . . . . . . . . . . . . . . . . . . .191 3.6.3 state machine te/lt-t modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .193 3.6.3.1 te/lt-t modes state diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
psb 2115 psf 2115 table of contents page semiconductor group 6 11.97 3.6.3.2 te/lt-t modes transition criteria . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .196 3.6.4 state machine lt-s mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202 3.6.4.1 lt-s mode state diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202 3.6.4.2 lt-s mode transition criteria . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203 3.6.4.3 transmitted signals and indications in lt-s mode . . . . . . . . . . . . . . . . . . .204 3.6.4.4 states lt-s mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205 3.6.5 state machine intelligent nt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206 3.6.5.1 intelligent nt mode state diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206 3.6.5.2 intelligent nt mode transition criteria . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207 3.6.5.3 transmitted signals and indications in intelligent nt mode . . . . . . . . . . . .208 3.6.5.4 states intelligent nt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209 3.6.6 command/indicate channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .210 3.6.7 example of activation/deactivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212 4 detailed register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213 4.1 register address arrangement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213 4.2 b-channel registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218 4.2.1 rfifob - receive fifo b-channel (read)) . . . . . . . . . . . . . . . . . . . . . . . .218 4.2.2 xfifob - transmit fifo b-channel (write)) . . . . . . . . . . . . . . . . . . . . . .219 4.2.3 istab - interrupt status register for b-channel (read) . . . . . . . . . . . . . .220 4.2.4 maskb - mask register for b-channel (write) . . . . . . . . . . . . . . . . . . . .220 4.2.5 starb - status register for b-channel (read) . . . . . . . . . . . . . . . . . . . . .221 4.2.6 cmdrb - command register for b-channel (write) . . . . . . . . . . . . . . . .222 4.2.7 modeb - mode register for b-channel (read/write) . . . . . . . . . . . . . .223 4.2.8 exirb - extended interrupt register for b-channel (read) . . . . . . . . . . . .225 4.2.9 rbclb - receive byte count low for b-channel (read) . . . . . . . . . . . . .226 4.2.10 rah1 - receive address byte high register 1 (write) . . . . . . . . . . . . . .226 4.2.11 rah2 - receive address byte high register 2 (write) . . . . . . . . . . . . . .226 4.2.12 rstab - receive status register for b-channel (read) . . . . . . . . . . . . . .227 4.2.13 ral1 - receive address byte low register 1 (read/write) . . . . . . . . . .229 4.2.14 ral2 - receive address byte low register 2 (write) . . . . . . . . . . . . . . .229 4.2.15 rhcrb - receive hdlc control register for b-channel (read) . . . . . . .230 4.2.16 xbcl - transmit byte count low (write) . . . . . . . . . . . . . . . . . . . . . . . . .230 4.2.17 ccr2 - channel configuration register 2 (read/write) . . . . . . . . . . . . .231 4.2.18 rbchb - received byte count high for b-channel (read) . . . . . . . . . . . .232 4.2.19 xbch - transmit byte count high (write) . . . . . . . . . . . . . . . . . . . . . . . .232 4.2.20 rlcr - receive length check register (write) . . . . . . . . . . . . . . . . . . . .233 4.2.21 ccr1 - channel configuration register 1 (read/write) . . . . . . . . . . . . .234 4.2.22 tsax - time-slot assignment register transmit (write) . . . . . . . . . . . . .234 4.2.23 tsar - time-slot assignment register receive (write) . . . . . . . . . . . . .235
psb 2115 psf 2115 table of contents page semiconductor group 7 11.97 4.2.24 xccr - transmit channel capacity register (write) . . . . . . . . . . . . . . . .235 4.2.25 rccr - receive channel capacity register (write) . . . . . . . . . . . . . . . .235 4.3 d-channel registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236 4.3.1 rfifod - receive fifo d-channel (read) . . . . . . . . . . . . . . . . . . . . . . . .236 4.3.2 xfifod - transmit fifo d-channel (write) . . . . . . . . . . . . . . . . . . . . . . . .236 4.3.3 istad - interrupt status register d-channel (read) . . . . . . . . . . . . . . . . .237 4.3.4 maskd - mask register d-channel (write) . . . . . . . . . . . . . . . . . . . . . . . .238 4.3.5 stard - status register d-channel (read) . . . . . . . . . . . . . . . . . . . . . . . .239 4.3.6 cmdrd - command register (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240 4.3.7 moded - mode register (read/write) . . . . . . . . . . . . . . . . . . . . . . . . . . . .242 4.3.8 timr1 - timer 1 register (read/write) . . . . . . . . . . . . . . . . . . . . . . . . . . . .244 4.3.9 exird - extended interrupt register (read) . . . . . . . . . . . . . . . . . . . . . . . .245 4.3.10 xad1 - transmit address 1 (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247 4.3.11 xad2 - transmit address 1 (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248 4.3.12 rbcld - receive frame byte count low for d-channel (read) . . . . . . . .248 4.3.13 sapr - received sapi register (read) . . . . . . . . . . . . . . . . . . . . . . . . . . .249 4.3.14 sap1 - sapi1 register (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249 4.3.15 sap2 - sapi2 register (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250 4.3.16 rstad - receive status register (read) . . . . . . . . . . . . . . . . . . . . . . . . . .250 4.3.17 tei1 - tei1 register 1 (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252 4.3.18 tei2 - tei2 register (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252 4.3.19 rhcrd - receive hdlc control register for d-channel (read) . . . . . . . .253 4.3.20 rbchd - receive frame byte count high for d-channel (read) . . . . . . .254 4.3.21 star2 - status register 2 (read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255 4.3.22 spcr - serial port control register (read/write) . . . . . . . . . . . . . . . . . . . .256 4.3.23 cir0 - command/indication receive 0 (read) . . . . . . . . . . . . . . . . . . . . . .258 4.3.24 cix0 - command/indication transmit 0 (write) . . . . . . . . . . . . . . . . . . . . . .259 4.3.25 mor0 - monitor receive channel 0 (read) . . . . . . . . . . . . . . . . . . . . . .260 4.3.26 mox0 - monitor transmit channel 0 (write) . . . . . . . . . . . . . . . . . . . . . .260 4.3.27 cir1 - command/indication receive 1 (read) . . . . . . . . . . . . . . . . . . . . . .260 4.3.28 cix1 - command/indication transmit 1 (write) . . . . . . . . . . . . . . . . . . . . . .261 4.3.29 mor1 - monitor receive channel 1 (read) . . . . . . . . . . . . . . . . . . . . . .261 4.3.30 mox1 - monitor transmit channel 1 (write) . . . . . . . . . . . . . . . . . . . . . .261 4.3.31 c1r - channel register 1 (read/write) . . . . . . . . . . . . . . . . . . . . . . . . . . . .262 4.3.32 c2r - channel register 2 (read/write) . . . . . . . . . . . . . . . . . . . . . . . . . . . .262 4.3.33 stcr - synchronous transfer control register (write) . . . . . . . . . . . . . . .263 4.3.34 b1cr - b1 channel register (read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264 4.3.35 b2cr - b2 channel register (read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264 4.3.36 adf1 - additional feature register 1 (write) . . . . . . . . . . . . . . . . . . . . . . .265 4.3.37 mosr - monitor status register (read) . . . . . . . . . . . . . . . . . . . . . . . . .266 4.3.38 mocr - monitor control register (write) . . . . . . . . . . . . . . . . . . . . . . . .267
psb 2115 psf 2115 table of contents page semiconductor group 8 11.97 4.4 general ipac registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268 4.4.1 conf - ipac configuration register (read/write) . . . . . . . . . . . . . . . . . . .268 4.4.2 ista - ipac interrupt status register (read) . . . . . . . . . . . . . . . . . . . . . . .270 4.4.3 mask - ipac mask register (write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .271 4.4.4 id - identification register (read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .271 4.4.5 acfg - auxiliary interface configuration (read/write) . . . . . . . . . . . . . . . .272 4.4.6 aoe - auxiliary output enable (read/write) . . . . . . . . . . . . . . . . . . . . . . . .273 4.4.7 arx - auxiliary interface receive register (read) . . . . . . . . . . . . . . . . . . .273 4.4.8 atx - auxiliary interface transmit register (write) . . . . . . . . . . . . . . . . . . .274 4.4.9 pita1/2 - pcm input time slot assignment b1/b2 (read/write) . . . . . . . .274 4.4.10 pota1/2 - pcm output time slot assignment b1/b2 (read/write) . . . . . .275 4.4.11 pcfg - pcm configuration register (read/write) . . . . . . . . . . . . . . . . . . .276 4.4.12 scfg - sds configuration register (read/write) . . . . . . . . . . . . . . . . . . .277 4.4.13 timr2 - timer 2 register (read/write) . . . . . . . . . . . . . . . . . . . . . . . . . . . .278 5 electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279 6 package outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .299 7 appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301 7.1 mon-8 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301 7.2 register address arrangement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .307 7.3 state diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .311 7.4 c/i codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .315 iom ? , iom ? -1, iom ? -2, sicofi ? , sicofi ? -2, sicofi ? -4, sicofi ? -4c, slicofi ? , arcofi ? , arcofi ? -ba, arcofi ? -sp, epic ? -1, epic ? -s, elic ? , ipat ? -2, itac ? , isac ? -s, isac ? -s te, isac ? -p, isac ? -p te, idec ? , sicat ? , octat ? -p, quat ? -s are registered trademarks of siemens ag. musac ? -a, falc ? 54, iwe ? , sare ? , utpt ? , asm ? , asp ? , digitape ? are trademarks of siemens ag.
psb 2115 psf 2115 list of figures page semiconductor group 9 11.97 figure 1: logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 figure 2: pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 3: block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 4: isdn pc adapter card for s interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 figure 5: isdn pc adapter card for u or s interface . . . . . . . . . . . . . . . . . . . . . . . 28 figure 6: isdn voice/data terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 7: isdn stand-alone terminal with pots interface . . . . . . . . . . . . . . . . . . 30 figure 8: multiline pc-adapter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 9: receive data flow of ipac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 10: transmit data flow of ipac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 11: location of time-slots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 12: nrz encoding/nrzi encoding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 figure 13: data inversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 figure 14: contents of rfifod (short message) . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 15: receive data flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 figure 16: contents of rfifod (long message) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 figure 17: transmit data flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 figure 18: d-channel access control on tic bus and s bus. . . . . . . . . . . . . . . . . . 54 figure 19: data flow for collision resolution procedure in intelligent nt . . . . . . . . 63 figure 20: intelligent nt-configuration for iom-2 channel switching. . . . . . . . . . . . 65 figure 21: data path switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 figure 22: s/t -interface line code (without code violation). . . . . . . . . . . . . . . . . . . 69 figure 23: frame structure at reference points s and t (itu i.430) . . . . . . . . . . . . 70 figure 24: wiring configurations in user premises. . . . . . . . . . . . . . . . . . . . . . . . . . 81 figure 25: connection of the line transformers and power supply to the ipac . . . 82 figure 26: equivalent internal circuits of receiver and transmitter stages . . . . . . . 83 figure 27: external circuitry for transmitters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 28: external circuitry for symmetrical receivers . . . . . . . . . . . . . . . . . . . . . . 86 figure 29: receiver circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 figure 30: receiver thresholds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 figure 31: disabling of s/t transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 figure 32: clock system of the ipac in lt-s mode . . . . . . . . . . . . . . . . . . . . . . . . . 90 figure 33: clock system of the ipac in te and lt-t modes . . . . . . . . . . . . . . . . . . 91 figure 34: acl indication of activated layer 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 35: acl configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 36: layer 2 test loops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 figure 37: indirect register address mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 38: high and low active interrupt output. . . . . . . . . . . . . . . . . . . . . . . . . . . 100 figure 39: ipac interrupt status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 40: timing diagram for dma-transfers (fast) transmit (n < 64, remainder of a long message or n = k 64) 104
psb 2115 psf 2115 list of figures page semiconductor group 10 11.97 figure 41: timing diagram for dma-transfers (slow) transmit (n < 64, remainder of a long message or n = k 64) 105 figure 42: timing diagram for dma-transfer (fast) receive (n = k 64) . . . . . . . . 105 figure 43: timing diagram for dma-transfers (slow) receive (n = k 64) . . . . . . 106 figure 44: timing diagram for dma-transfers (slow or fast) receive (n = 4, 8, 16 or 32) 106 figure 45: dma-transfers with pulsed dack (read or write) . . . . . . . . . . . . . . . . . 106 figure 46: configuration of rfifob (long frames) . . . . . . . . . . . . . . . . . . . . . . . . 108 figure 47: configuration of rfifob (short frames). . . . . . . . . . . . . . . . . . . . . . . . 109 figure 48: timer 1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 figure 49: timer 2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 figure 50: reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 figure 51: channel structure of iom-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 figure 52: multiplexed frame structure of the iom-2 interface in non-te timing mode 114 figure 53: definition of iom-2 channels in terminal timing mode . . . . . . . . . . . . . 115 figure 54: data strobe signal generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 figure 55: iom-2 direction control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 figure 56: iom-2 data ports du/dd in terminal mode (mode0=0) . . . . . . . . . . . 120 figure 57: iom-2 data ports du/dd in lt-t mode (mode0=1, mode1=1) . . . . . 121 figure 58: iom-2 data ports du/dd in lt-s mode (mode0=1, mode1=0) with normal layer 2 direction (spcr:sdl=1) 123 figure 59: iom-2 data ports du/dd in lt-s mode (mode0=1, mode1=0) with inversed layer 2 direction (spcr:sdl=0) 124 figure 60: principle of b/ic channel access in iom-2 terminal mode . . . . . . . . . . 126 figure 61: access to b and ic channels in iom-2 terminal mode . . . . . . . . . . . . . 126 figure 62: examples of monitor channel applications in iom-2 te mode. . . . . 129 figure 63: monitor channel protocol (iom-2). . . . . . . . . . . . . . . . . . . . . . . . . . . 131 figure 64: handshake protocol with a 2-byte monitor message/response . . . . . . 134 figure 65: abortion of monitor channel transmission . . . . . . . . . . . . . . . . . . . . . . 136 figure 66: applications of tic bus in iom-2 bus configuration . . . . . . . . . . . . . . . 140 figure 67: structure of last octet of ch2 on du. . . . . . . . . . . . . . . . . . . . . . . . . . . 141 figure 68: structure of last octet of ch2 on dd. . . . . . . . . . . . . . . . . . . . . . . . . . . 142 figure 69: input/output characteristic of aux pins . . . . . . . . . . . . . . . . . . . . . . . . 144 figure 70: pcm frame alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 figure 71: pcm bit alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 figure 72: switching data between pcm and iom-2 . . . . . . . . . . . . . . . . . . . . . . . 149 figure 73: data path switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 figure 74: generation of fsc and bcl in lt-t mode . . . . . . . . . . . . . . . . . . . . . . 150 figure 75: multiline application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 figure 76: switching of pcm timeslots on iom-2 channel b1 . . . . . . . . . . . . . . . . 152 figure 77: buffered oscillator clock output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
psb 2115 psf 2115 list of figures page semiconductor group 11 11.97 figure 78: ipac interrupt status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 figure 79: a) cic interrupt structure b) mos interrupt structure 172 figure 80: interrupt driven data transmission (flow diagram) . . . . . . . . . . . . . . . 175 figure 81: interrupt driven transmission sequence example . . . . . . . . . . . . . . . . 176 figure 82: continuous frames transmission (flow diagram) . . . . . . . . . . . . . . . . 177 figure 83: continuous frames transmission sequence example . . . . . . . . . . . . . 178 figure 84: dma driven transmission sequence example . . . . . . . . . . . . . . . . . . . 179 figure 85: interrupt driven reception sequence example . . . . . . . . . . . . . . . . . . . 181 figure 86: dma driven reception sequence example. . . . . . . . . . . . . . . . . . . . . . 182 figure 87: transmit data flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 figure 88: transmission of an i frame in the d channel (subscriber to exchange) 185 figure 89: receive data flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 figure 90: deactivation of the iom interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 figure 91: activation of the iom interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 figure 92: state diagram notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 figure 93: state transition diagram in te/lt-t modes . . . . . . . . . . . . . . . . . . . . . 194 figure 94: state diagram of the te/lt-t modes, unconditional transitions . . . . . 195 figure 95: state transition diagram in lt-s mode . . . . . . . . . . . . . . . . . . . . . . . . . 202 figure 96: nt mode state diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 figure 97: example of activation/deactivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 figure 98: register mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 figure 99: test condition for maximum input current. . . . . . . . . . . . . . . . . . . . . . . 279 figure 100:maximum line input current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 figure 101:oscillator circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 figure 102:input/output waveform for ac tests . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 figure 103:microprocessor read cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 figure 104:microprocessor write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 figure 105:multiplexed address timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 figure 106:non-multiplexed address timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 figure 107:microprocessor read timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 figure 108:microprocessor write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 figure 109:non-multiplexed address timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 figure 110:iom timing (te mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 figure 111:iom timing (lt-s, lt-t mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 figure 112:pcm interface timing (lt-s, lt-t mode) . . . . . . . . . . . . . . . . . . . . . . . 291 figure 113:bcl, fsc output delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 figure 114:aux interface i/o timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 figure 115:phase relationships of ipac clock signals. . . . . . . . . . . . . . . . . . . . . . 294 figure 116:definition of clock period and width . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 figure 117:block diagram of xpll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 figure 118:reset signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
psb 2115 psf 2115 list of figures page semiconductor group 12 11.97 figure 119:state transition diagram in te/lt-t modes . . . . . . . . . . . . . . . . . . . . . 311 figure 120:state diagram of the te/lt-t modes, unconditional transitions . . . . . 312 figure 121:state transition diagram in lt-s mode . . . . . . . . . . . . . . . . . . . . . . . . . 313 figure 122:nt mode state diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
psb 2115 psf 2115 list of tables page semiconductor group 13 11.97 table 1: programming of timeslots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 table 2: receive information at rme interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 table 3: ipac configuration settings in intelligent nt applications . . . . . . . . . . . .60 table 4: mode setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 table 5: multiframe structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 table 6: mon-8 write to register structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 table 7: mon-8 read register request structure . . . . . . . . . . . . . . . . . . . . . . . .73 table 8: mon-8 read response structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 table 9: du/dd direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 table 10: bus operation modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 table 11: auxiliary interface interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102 table 12: d-channel interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102 table 13: b-channel interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103 table 14: mp access to b/ic channels (iom-2) . . . . . . . . . . . . . . . . . . . . . . . . . . .125 table 15: aux pin functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143 table 16: iom-2 channel selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145 table 17: reset values for b-channel registers . . . . . . . . . . . . . . . . . . . . . . . . .155 table 18: reset values for d-channel registers . . . . . . . . . . . . . . . . . . . . . . . . .156 table 19: reset values for general ipac registers . . . . . . . . . . . . . . . . . . . . . . .157 table 20: register setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158 table 21: user demand registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159 table 22: receive interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165 table 23: transmit interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166 table 24: interrupts from d-channel hdlc controller. . . . . . . . . . . . . . . . . . . . . . .168 table 25: auxiliary interface interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173 table 26: status information after rme interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . .180 table 27: iom-2 modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243 table 28: capacitances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .283 table 29: reset signal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .298 table 30: du/dd direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .305
semiconductor group 14 11.97 psb 2115 psf 2115 overview 1overview the isdn pc adapter circuit ipac integrates all necessary functions for a host based isdn access solution on a single chip. it includes the s-transceiver (layer 1), an hdlc controller for the d-channel and two protocol controllers for each b-channel. they can be used for hdlc protocol or transparent access. the system integration is simplified by several host interface configurations selected via pin strapping. they include multiplexed and demultiplexed interface options as well as the optional indirect register access mechanism which reduces the number of necessary registers in the address space to 2 locations. the ipac combines the functions of the isdn subscriber access controller (isac-s peb 2086) and the high-level serial communications controller extended for terminals (hscx-te psb 21525) providing additional features and enhanced functionality. the fifo size of the b-channel buffers is 2x64 bytes per channel and per direction. the s-transceiver supports other terminal relevant operation modes like line termination subscriber side (lt-s) and line termination trunk side (lt-t). a multi-line isdn solution to support both s and u (2b1q) line coding is simplified as well as multi-line solution with up to 3 s-interfaces. an auxiliary i/o port has been added with interrupt capabilities on two input lines. these programmable i/o lines may be used to connect a dtmf receiver or other peripheral components to the ipac which need software control or have to forward status information to the host. peripheral data controllers can transfer data on a pcm interface which is mapped into the b-channels on the iom-2 interface. three programmable led outputs can be used to indicate certain status information, one of them is capable to indicate the activation status of the s-interface automatically. the ipac is produced in advanced cmos technology.
semiconductor group 15 11.97 isdn pc adapter circuit ipac psb 2115 psf 2115 version 1.1 cmos p-mqfp-64 p-tqfp-64 ? software reset (required for windows95) ? programmable i/o interface with 2 interrupt inputs ? pcm interface for non iom-2 compatible peripheral data controllers ? programmable timer (1 ... 63 ms) for continuous or single interrupts ? reduced register address space due to indirect address mode option ? 3 programmable led outputs, one can indicate s bus activation status automatically ? 8-bit multiplexed or demultiplexed bus interface ? siemens/intel or motorola m p interface 1.1 features ? single chip host based isdn solution ? integrates s-transceiver, d-channel, b-channel protocol controller ? replaces solutions based on isac-s te psb 2186 and hscx-te psb 21525 ? easy adjustment of software using isac-s and hscx-te ? various types of protocol support depending on operating mode (non-auto mode, transparent mode) ? efficient transfer of data blocks from/to system memory by dma or interrupt request ? enlarged fifo buffers (2x64 byte) per b-channel and per direction ? s-transceiver with te, lt-s and lt-t modes ? d-channel fifo buffers with 2x32byte ? d-channel access mechanism in all modes ? d-channel priority handler on iom-2 for intelligent nt applications
psb 2115 psf 2115 overview semiconductor group 16 11.97 1.2 logic symbol the logic symbol shows all functions of the ipac. it must be noted, that not all functions are available simultaneously, but depend on the selected mode. pins which are marked with a * are multiplexed and not available in all modes. figure 1 logic symbol
psb 2115 psf 2115 overview semiconductor group 17 11.97 1.3 pin configuration figure 2 shows the pin configuration for p-mqfp-64 and for p-tqfp-64 packages. figure 2 pin configuration 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 vdd bcl / sclk du dd fsc dcl vss mode0 mode1 / eaw acl sds aux7 aux6 aux5 aux4 aux3 aux1 aux0 dackb dacka drqrb drqtb vdd a7 a6 a5 a4 a3 a2 a1 a0 vss sx2 sx1 vssa sr1 sr2 vdda xtal 2 xtal1 c768 vss tp tp tp amo d res aux2 vdd int ale cs wr / r/ w rd / ds vss ad0 / d0 ad1 / d1 ad2 / d2 ad3 / d3 vdd ad4 / d4 ad5 / d5 ad6 / d6 ad7 / d7
psb 2115 psf 2115 overview semiconductor group 18 11.97 1.4 pin definitions and functions pin no. symbol input (i) output (o) function microprocessor interface 8 9 10 11 13 14 15 16 ad0-7 d0...7 i/o i/o multiplexed bus mode: address/data bus transfers addresses from the host system to the ipac and data between the host system and the ipac. non-multiplexed bus mode: data bus. transfers data between the host system and the ipac. 18 19 20 21 22 23 24 25 a0-a7 i non-multiplexed bus mode: address bus transfers addresses from the host system to the ipac. for indirect address mode only a0 is valid. multiplexed bus mode not used in multiplexed bus mode. in this case a0-a7 should directly be connected to vdd. 6rd ds i i read indicates a read access to the registers (intel bus mode). data strobe the rising edge marks the end of a valid read or write operation (motorola bus mode). 5wr r/w i i write indicates a write access to the registers (intel bus mode). read/write a high identifies a valid host access as a read operation and a low identifies a valid host access as a write operation (motorola bus mode). 4cs i chip select a low on this line selects the ipac for a read/write operation.
psb 2115 psf 2115 overview semiconductor group 19 11.97 3alei address latch enable a high on this line indicates an address on the external address/data bus (multiplexed bus type only). ale also selects the microprocessor interface type (multiplexed or non multiplexed). 2int od interrupt request this low active signal is activated when the ipac requests an interrupt. it is an open drain output. 27 drqtb o dma request transmitter (channel b) the transmitter of the ipac requests dma data transfer by activating this line. the drqtb remains high as long as the transmit fifo requires data transfer. the amount of data bytes to be transferred from system memory to the ipac (= byte count) must be written first to the xbch, xbcl register. always blocks of data (n x 64 bytes + rest, n=0, 1, ..) are transferred till the byte count is reached. drqtb is deactivated immediately following the falling edge of the last wr cycle. note: to support dma for channel a, the drqta line is available in te mode only (see pin aux0). 28 drqrb o dma request receiver (channel b) the receiver of the ipac requests dma data transfer by activating this line. the drqrb remains high as long as the receive fifo requires data transfer, thus always blocks of data (64, 32, 16, 8 or 4 bytes) are transferred. drqrb is deactivated immediately following the falling edge of the last read cycle. note: to support dma for channel a, the drqra line is available in te mode only (see pin aux1). pin no. symbol input (i) output (o) function
psb 2115 psf 2115 overview semiconductor group 20 11.97 29 30 dacka dackb i dma acknowledge (channel a/b) when low, this input signal from the dma controller indicates to the ipac, that the requested dma cycle controlled via drqta/b and drqra/b is in progress, i.e. the dma controller has achieved bus mastership from the cpu and will start data transfer cycles (either read or write). together with rd , if dma has been requested from the receiver, or with wr , if dma has been requested from the transmitter, this input works like cs to enable a data byte to be read from or written to the top of the receive or transmit fifo of the specified channel. if dacka/b is active, the input on pins a0-7 is ignored and the fifos are implicitly selected. if the dacka/b signals are not used, these pins must be connected to vdd. auxiliary interface 31 aux0 i/o auxiliary port 0 te-mode: drqta (output) dma request transmitter (channel a) the transmitter of the ipac requests dma data transfer by activating this line. the drqta remains high as long as the transmit fifo requires data transfer. the amount of data bytes to be transferred from system memory to the ipac (= byte count) must be written first to the xbch, xbcl register. always blocks of data (n x 64 bytes + rest, n=0, 1, ..) are transferred till the byte count is reached. drqta is deactivated immediately following the falling edge of the last wr cycle. lt-t/lt-s mode: ch0 (input) iom-2 channel select 0 together with ch1 (pin aux1) and ch2 (pin aux2), this pin selects one of eight channels on the iom-2 interface. pin no. symbol input (i) output (o) function
psb 2115 psf 2115 overview semiconductor group 21 11.97 32 aux1 i/o auxiliary port 1 te-mode: drqra (output) dma request receiver (channel a) the receiver of the ipac requests dma data transfer by activating this line. the drqra remains high as long as the receive fifo requires data transfer, thus always blocks of data (64, 32, 16, 8 or 4 bytes) are transferred. drqra is deactivated immediately following the falling edge of the last read cycle. lt-t/lt-s mode: ch1 (input) iom-2 channel select 1 together with ch0 (pin aux0) and ch2 (pin aux2), this pin selects one of eight channels on the iom-2 interface. 33 aux2 i/o auxiliary port 2 te-mode: aux2 (input) this pin is programmable as general input/output. the state of the pin can be read from (input) / written to (output) a register. te-mode: int (output) this high active signal is activated when the ipac requests an interrupt (invers polarity of int line). lt-t/lt-s mode: ch2 (input) iom-2 channel select 2 together with ch0 (pin aux0) and ch1 (pin aux1), this pin selects one of eight channels on the iom-2 interface. pin no. symbol input (i) output (o) function
psb 2115 psf 2115 overview semiconductor group 22 11.97 64 aux3 i/o auxiliary port 3 te-mode: aux3 (input/output) this pin is programmable as general input/output. the state of the pin can be read from (input) / written to (output) a register. lt-t/lt-s mode: fbout (output) fsc/bcl output this pin is programmable to output either an fsc clock which is derived from the dcl input divided by 192 (in lt-t: sclk output provides 1.536 mhz) or a single bit clock from the iom-2 interface, especially to serve non iom-2 compatible peripheral devices on the pcm interface. 63 aux4 i/o auxiliary port 4 te-mode: aux4 (input/output) this pin is programmable as general input/output. the state of the pin can be read from (input) / written to (output) a register. lt-t/lt-s mode: pcmin (input) pcm data input on this line the ipac receives 8-bit data, which is transmitted from a peripheral device. this data is mapped to a b-channel timeslot on iom-2. 62 aux5 i/o auxiliary port 5 te-mode: aux5 (input/output) this pin is programmable as general input/output. the state of the pin can be read from (input) / written to (output) a register. lt-t/lt-s mode: pcmout (output) pcm data output on this line the ipac transmits 8-bit data, which is received by a peripheral device. this data is taken from a b-channel timeslot on iom-2. pin no. symbol input (i) output (o) function
psb 2115 psf 2115 overview semiconductor group 23 11.97 61 60 aux6 aux7 i/o auxiliary port 6/7 all modes: int0/1 this pin is programmable as general input/output. the state of the pin can be read from (input) / written to (output) a register. additionally, as input they can generate a maskable interrupt to the host, which is either edge or level triggered. an internal pull up resistor is connected to these pins. as outputs an led can directly be connected to these pins. lt-t mode: aux7 can also be programmed to output the s/g bit signal from the iom-2 dd line (lt-t mode only). iom-2 interface 53 fsc i/o frame sync synchronisation signal. the rising edge indicates the beginning of the iom frame (high during channel 0 in te mode). 54 dcl i/o data clock iom clock signal of twice the iom data rate. the first rising edge is used to transmit data, the second falling edge is used to sample data. 51 du i/o(od) data upstream iom data signal in upstream direction. 52 dd i/o (od) data downstream iom data signal in downstream direction. 50 bcl/ sclk o bit clock/s-clock te-mode: bit clock output, identical to iom data rate. lt-t mode: 1.536 mhz output synchronous to s-interface. lt-s mode: bit clock output derived from the dcl input clock divided by 2. pin no. symbol input (i) output (o) function
psb 2115 psf 2115 overview semiconductor group 24 11.97 59 sds o serial data strobe programmable strobe signal, selecting either one or two channels (8 or 16 bit strobe length) on the iom-2 or pcm interface. miscellaneous 34 res i/o reset a high on this input forces the ipac into a reset state. the minimum pulse length is four dcl-clock periods or four ms (see table 29 ). if the terminal specific functions are enabled, the ipac may also supply a reset signal. 35 amode i address mode selects between direct and indirect register access. a high selects indirect address mode and a low selects the direct register access. 56 mode0 i mode 0 select a low selects te-mode and a high selects lt-t and lt-s mode (see mode1/eaw ). 57 mode1 eaw i i mode 1 select / external awake the pin function depends on the setting of mode0. if mode0=1: mode 1 select a low selects lt-s mode and a high selects lt-t mode. if mode0=0: external awake if a falling edge on this input is detected, the ipac generates an interrupt and, if enabled, a reset pulse. 58 acl o activation led this pin can either function as a programmable output or automatically indicate the activated state of the s interface by a logic 0. an led with pre-resistance may directly be connected to acl . 47 48 sx1 sx2 o o s-bus transmitter output differential output for the s-transmitter. positive negative pin no. symbol input (i) output (o) function
psb 2115 psf 2115 overview semiconductor group 25 11.97 45 44 sr1 sr2 i i s-bus receiver input differential inputs for the s-receiver. 41 xtal1 i oscillator input input pin of oscillator or input from external clock source. 7.68 mhz crystal or clock required. 42 xtal2 o oscillator output output pin of oscillator. not connected if external clock source is used. 40 c768 o clock output a 7.68 mhz clock is output to support other devices, e.g. further ipacs in a multiline application. this clock is not synchronous to the s interface. 36 37 38 tp i test pins. these pins are not used for normal operation. they must be connected to gnd. power supply 1 12 26 49 vdd i digital supply voltage +5v (+/- 5%) 43 vdda i analog supply voltage +5v (+/- 5%) 7 17 39 55 vss i digital gnd 46 vssa i analog gnd pin no. symbol input (i) output (o) function
psb 2115 psf 2115 overview semiconductor group 26 11.97 1.5 functional block diagram figure 3 block diagram
psb 2115 psf 2115 overview semiconductor group 27 11.97 1.6 system integration the ipac is suited for all host based applications. isdn pc adapter card for s interface an isdn adapter card for a pc is built around the ipac using a usb, pci or pnp interface device depending on the pc interface ( figure 4 ). the ipac can be connected to any bus interface logic and since it provides the possibility of a one-device terminal architecture, interfacing directly to the printer port applications is rather easy. figure 4 isdn pc adapter card for s interface ipac psb 2115 s interface interface logic (usb, pci, plug and play, isa bus, parallel printer port) host interface 2115_12
psb 2115 psf 2115 overview semiconductor group 28 11.97 isdn pc adapter card for u or s interface an isdn adapter card which supports both u and s interface may be realized using the ipac together with the psb 21910 iec-q te ( figure 5 ). the s interface may be configured for te or lt-s mode supporting intelligent nt configurations. figure 5 isdn pc adapter card for u or s interface iec-q te psb 20911 u interface iom-2 ipac psb 2115 host interface s interface * * optional for nt applications interface logic (usb, pci, plug and play, isa bus) 2115_13
psb 2115 psf 2115 overview semiconductor group 29 11.97 isdn voice/data terminal figure 6 shows a voice data terminal developed on a pc card, where the ipac provides its functionality as data controller + s interface within a two chip solution. during isdn calls the arcofi-sp psb 2163 provides for speakerphone functions and includes a dtmf generator. additionally, a dtmf receiver or keypad may be connected to the auxiliary interface of the ipac (lt-t mode). figure 6 isdn voice/data terminal ipac psb 2115 s interface host interface arcofi-sp psb 2163 dtmf receiver or keypad aux iom-2 2115_14 interface logic (usb, pci, plug and play, isa bus)
psb 2115 psf 2115 overview semiconductor group 30 11.97 isdn stand-alone terminal with pots interface the ipac (lt-t mode) can be integrated in a microcontroller based stand-alone terminal ( figure 7 ) that is connected to the communications interface of a pc. the sicofi2-te psb 2132 enables connection of analog terminals (e.g. telephones or fax) to the dual channel pots interface. figure 7 isdn stand-alone terminal with pots interface ipac psb 2115 s interface microcontroller pc interface iom-2 sicofi2-te psb 2132 v.24 interface slic pots dtmf receiver or keypad aux slic
psb 2115 psf 2115 overview semiconductor group 31 11.97 multiline pc-adapter up to three s-interfaces can be combined using one iom interface ( figure 8 ). all three ipacs are configured for lt-t mode in different channels. the sclk output is used for dcl clock and the fsc clock is generated by one device. only one 7.68 mhz crystal is required for the three ipacs as they provide a buffered output clock derived from the xtal1 clock input. figure 8 multiline pc-adapter ipac psb 2115 host interface ipac psb 2115 ipac psb 2115 3 x s interface data controller iom-2 pcm 2115_15 interface logic (usb, pci, plug and play, isa bus)
psb 2115 psf 2115 functional description semiconductor group 32 11.97 2 functional description the isdn pc adapter circuit ipac replaces solutions which are based on isac-s te psb 2186 and hscx-te psb 21525. most of the functions of both devices are integrated on the ipac with further modifications and improvements on certain features. therefore the functional and operational description is quite similar to these devices. 2.1 b-channel operation the hdlc controller of each channel can be programmed to operate in various modes, which are different in the treatment of the hdlc frame in receive direction. thus, the receive data flow and the address recognition features can be effected in a very flexible way, which satisfies most requirements. there are 4 different operating modes which can be set via the modeb register. ? non-auto mode (modeb: mds1, mds0 = 01) ? transparent mode 1 (modeb: mds1, mds0, adm = 101) ? transparent mode 0 (modeb: mds1, mds0, adm = 100) ? extended transparent modes 0; 1 (modeb: mds1, mds0 = 11) 2.1.1 non-auto mode (modeb: mds1, mds0 = 01) characteristics: address recognition, arbitrary window size. all frames with valid addresses are forwarded directly to the system memory. according to the selected address mode, the ipac can perform a 2-byte or 1-byte address recognition. if a 2-byte address field is selected, the high address byte is compared with the fixed value fe h or fc h (group address) as well as with two individually programmable values in rah1 and rah2 registers. similarly, two compare values can be programmed in special registers (ral1, ral2) for the low address byte. a valid address will be recognized in case the high and low byte of the address field correspond to one of the compare values. thus, the ipac can be called (addressed) with 6 different address combinations. hdlc frames with address fields that do not match with any of the address combinations, are ignored by the ipac. the hdlc control field, data in the i-field and an additional status byte are temporarily stored in the rfifob. the hdlc control field and additional information can also be read from special registers (rhcrb, rstab), however, the register contents are only valid for the last received frame and values of previous frames are overwritten. if several frames are stored in the rfifob the information should be read from the fifo contents. in non-auto mode, all frames are treated similarly.
psb 2115 psf 2115 functional description semiconductor group 33 11.97 2.1.2 transparent mode 1 (modeb: mds1, mds0, adm = 101) characteristics: address recognition high byte only the high byte of a 2-byte address field will be compared. the whole frame except the first address byte will be stored in rfifob. ral1 contains the second and rhcrb the third byte following the opening flag. 2.1.3 transparent mode 0 (modeb: mds1, mds0, adm = 100) characteristics: no address recognition no address recognition is performed and each frame will be stored in the rfifob. ral1 contains the first and rhcrb the second byte following the opening flag. 2.1.4 extended transparent modes 0, 1 (modeb: mds1, mds0 = 11) characteristics: fully transparent in extended transparent modes, fully transparent data transmission/reception without hdlc framing is performed, i.e. without flag generation/recognition, crc generation/ check, bit-stuffing mechanism. this allows user specific protocol variations or the usage of character oriented protocols (such as ibm bisync). data transmission is always performed out of the xfifob. in extended transparent mode 0 (adm = 0), data reception is done via the ral1 register, which always contains the actual data byte assembled at the dd pin. in extended transparent mode 1 (adm = 1), the receive data are additionally shifted into the rfifob. also refer to chapter 2.1.8 and 2.1.9 .
psb 2115 psf 2115 functional description semiconductor group 34 11.97 2.1.5 receive data flow the following figure gives an overview of the management of the received hdlc frames as affected by different operating modes. figure 9 receive data flow of ipac itd09619 flag addr ctrl i crc flag address control data status adm mds0 mds1 auto/16 011 rah1,2 ral1,2 rfifob rhcrb rstab auto/8 010 x rfifob rhcrb rstab transparent 101 rah1,2 rfifob rhcrb rstab 100 rfifob rstab non non ral1,2 ral1 1 0 transparent ral1 rhcrb mode note: in case of on 8 bit address, the control field starts here! description of symbols: compared with (register) stored (fifo, register)
psb 2115 psf 2115 functional description semiconductor group 35 11.97 2.1.6 transmit data flow transparent frames can be transmitted as shown below. figure 10 transmit data flow of ipac for transparent frames (command xtf via cmdrb register), the address and the control fields have to be entered in the xfifob. this is possible in all operating modes. itd09620 flag addr ctrl i crc flag address control data checkram xfifob transmit transparent frame (xtf)
psb 2115 psf 2115 functional description semiconductor group 36 11.97 2.1.7 serial interface the two serial interfaces of the ipac provide two fully independent channels for b- channel communication. 2.1.7.1 clock mode 5 (time-slots) this operating mode has been designed for application in time-slot oriented pcm systems. it is well known as clock mode 5 from the hscx-te psb 21525. the receive and transmit clock is identical for both channels and is generated from the double rate bit clock at the dcl pin, i.e. the bit clock frequency is dcl/2. the ipac receives and transmits only during certain time-slots of programmable width (1 256 bit, via rccr and xccr registers) and location with respect to a frame synchronization signal, which is determined via the fsc pin. one of up to 64 time-slots can be programmed independently for receive and transmit direction via tsar and tsax registers, and an additional clock shift of 0 7 bits via tsar, tsax, and ccr2 registers. together with bits xcs0 and rcs0 (lsb of clock shift), located in the ccr2 register, there are 9 bits to determine the location of a time-slot. according to the value programmed via those bits, the receive/transmit window (time-slot) starts with a delay of 1 (minimum delay) up to 512 clock periods following the frame synchronization signal and is active during the number of clock periods programmed via rccr, xccr (number of bits to be received/transmitted within a time- slot) as shown in figure 11 . within one frame the b1-channel occupies bit 0...7 and the b2-channel bit 8...15. considering the minimum delay of 1 bit, the host programs the previous channel with 7 bits clock shift in order to access a certain channel. note: the previous channel of the b1-channel is the last of the iom-2 frame, e.g. in te mode (dcl=1.536 mhz) the channel number is 11 (12th timelsot). table 1 programming of timeslots timeslot tsar/tsax rcs0...2 0 (b1-channel) no. of previous channel (see note) 7 1 (b2-channel) 0 7
psb 2115 psf 2115 functional description semiconductor group 37 11.97 figure 11 location of time-slots note: in extended transparent mode the width of the time-slots has to be n 8 bit. the active time-slot can additionally be indicated by a programmable strobe signal sds of which the output is set to log 1 during the active window. itd09621 (6 bits ) time-slot number tsn clock shift cs bits (3 ) 9 bits 2 xcs 1 0 rcs 0 1 rcs rcs 2 xcs xcs ccr 2 tsnr tsnx tsar tsax register: n time-slot delay scfg : tslt (0, 7, 15, ... 255 clocks) width scfg : tlen (8 or 16 bit) ~ ~~ ~ fsc bcl sds
psb 2115 psf 2115 functional description semiconductor group 38 11.97 2.1.7.2 data encoding in the point-to-point configuration, the ipac supports both nrz and nrzi data encoding (selectable via ccr1 register). figure 12 nrz encoding/nrzi encoding during nrzi encoding, level changes are interpreted as log 0, and no changes in level as log 1. data output on the iom interface is performed with the rising edge of dcl, data input with the second falling dcl clock edge.
psb 2115 psf 2115 functional description semiconductor group 39 11.97 2.1.8 fully transparent transmission and reception when programmed to the extended transparent mode via the modeb register (mds1, mds0 = 11), each channel of the ipac supports fully transparent data transmission and reception without hdlc framing overhead, i.e. without ? flag insertion and deletion ? crc generation and checking ? bit-stuffing mechanism. in order to enable fully transparent data transfer, rac bit in modeb has to be reset and ff h has to be written to xad1, xad2 and rah2. data transmission is always performed out of the transmit fifo by directly shifting the contents of the xfifob via the serial transmit data pin (du). transmission is initiated by setting cmdrb : xtf (08 h ); end of transmission is indicated by exirb : exe (40 h ). in receive direction, the character currently assembled via the receive data line (dd) is available in the ral1 register. additionally, in extended transparent mode 1 (modeb: mds1, mds0, adm = 111), the received data is shifted into the rfifob. this feature can be profitably used e.g. for: ? user specific protocol variations ? the application of character oriented protocols (e.g. bisync) ? test purposes, line intentionally violation of hdlc protocol rules (e.g. wrong crc) the valid timeslot for data access on iom-2 can be selected by setting timeslot position and timeslot length. for a timeslot length greater than 8-bit (e.g. 16-bit) the access to the selected timeslots on iom-2 is not synchronized to the frame sync signal fsc. for example if the valid 16-bit timeslot is programmed to b1 and b2, the ipac does not ensure that transmission is started in b1 of the very first iom-2 frame, it may also start with b2 and then continue with b1 and b2 in the next frame. it should be noted that in extended transparent mode 1 an invalid octett is output on iom-2 before the first valid octett from the xfifob is transmitted. in receive direction the first 3 ocetetts of each 64-byte rfifob block are invalid and should be discarded. 2.1.9 cyclic transmission (fully transparent) if the extended transparent mode is selected, the ipac supports the continuous transmission of the transmit fifos contents. after having written 1 to 64 bytes to the xfifob, the command xrep.xtf.xme via the cmdr register (bit 7 0 = 00101010 = 2ah) forces the ipac to repeatedly transmit the data stored in the xfifob via du pin. the cyclic transmission continues until a reset command (cmdrb : xres) is issued, after which continuous 1-s are transmitted.
psb 2115 psf 2115 functional description semiconductor group 40 11.97 note: in dma-mode the command xrep, xtf has to be written to cmdrb. 2.1.10 continuous transmission (dma mode only) if data transfer from system memory to the ipac is done by dma (dma bit in xbch set), the number of bytes to be transmitted is usually defined via the transmit byte count registers (xbch, xbcl : bits xbc11 ... xbc0). setting the ?transmit continuously (xc) bit in xbch, however, the byte count value is ignored and the dma interface of the ipac will continuously request for transmit data any time 64 bytes can be stored in the xfifob. this feature can be used e.g. to ? continuously transmit voice or data onto a pcm highway, or to ? transmit frames exceeding the byte count programmable via xbch, xbcl (frames with more than 4095 bytes). note: if the xc bit is reset during continuous transmission, the transmit byte count becomes valid again, and the ipac will request the amount of dma transfers programmed via xbc11 ... xbc0. otherwise the continuous transmission is stopped when a data underrun condition occurs in the xfifob, i.e. the dma controller does not transfer further data to the ipac. in this case continuous 1-s (idle), without appending a crc, are transmitted. 2.1.11 receive length check feature the ipac offers the possibility to supervise the maximum length of received frames and to terminate data reception in case this length is exceeded. this feature is controlled via the special receive length check register (rlcr). the function is enabled by setting the rc (receive check) bit in rlcr and programming the maximum frame length via bits rl5 rl0 1) . according to the value written to rl5 rl0, the maximum receive length can be adjusted in multiples of 64-byte blocks as follows: all frames exceeding this length are treated as if they have been aborted from the opposite station, i.e. the cpu is informed via a 1) the frame length includes all bytes which are stored in the rfifob. max. length = (rl + 1) 64.
psb 2115 psf 2115 functional description semiconductor group 41 11.97 C rme interrupt, and the C rab bit in rsta register is set! to distinguish between frames really aborted from the opposite station, the receive byte count (readable from rbchb, rbclb registers) exceeds the maximum receive length (via rl5 rl0) by one or two bytes in this case. the check includes all data that is copied into the rfifob. it does not include the address byte(s) if address recognition is selected. it includes the rstab value in all operating modes. 2.1.12 data inversion when nrz data encoding has been selected, the ipac may transmit and receive data inverted, i.e. a one bit is transmitted as phys. zero (0 v) and a zero bit as phys. one (+ 5 v) via the du line. figure 13 data inversion this feature is selected by setting the div bit in the ccr2 register.
psb 2115 psf 2115 functional description semiconductor group 42 11.97 2.2 d-channel operation 2.2.1 layer-2 functions for hdlc the d-channel hdlc controller in the ipac is responsible for the data link layer using hdlc/sdlc based protocols. the ipac can be configured to support data link layer to a degree that best suits system requirements. multiple links may be handled simultaneously due to the address recognition capabilities, as explained in section 2.2.1.1 . the ipac supports point-to-point protocols such as lapb (link access procedure balanced) used in x.25 networking. for isdn, one particularly important protocol is the link access procedure for the d channel (lapd). lapd, layer 2 of the isdn d-channel protocol (ccitt i.441) includes functions for: C provision of one or more data link connections on a d channel (multiple lap). discrimination between the data link connections is performed by means of a data link connection identifier (dlci = sapi + tei) C hdlc-framing C application of a balanced class of procedure in point-multipoint configuration. the hdlc transceiver in the ipac performs the framing functions used in hdlc/sdlc based communication: flag generation/recognition, bit stuffing, crc check and address recognition. the fifo structure with two 64-byte pools for transmit and receive directions and an intelligent fifo controller permit flexible transfer of protocol data units to and from the m c system. 2.2.1.1 message transfer modes the hdlc controller can be programmed to operate in various modes, which are different in the treatment of the hdlc frame in receive direction. thus, the receive data flow and the address recognition features can be programmed in a flexible way, to satisfy different system requirements. for the address recognition the ipac contains four programmable registers for individual sapi and tei values sap1-2 and tei1-2, plus two fixed values for group sapi and tei, sapg and teig.
psb 2115 psf 2115 functional description semiconductor group 43 11.97 there are 5 different operating modes which can be set via the moded register: auto mode (mds2, mds1 = 00) characteristics: C full address recognition (1 or 2 bytes). C normal (mod 8) or extended (mod 128) control field format C automatic processing of numbered frames of an hdlc procedure. if a 2-byte address field is selected, the high address byte is compared with the fixed value fe h or fc h (group address) as well as with two individually programmable values in sap1 and sap2 registers. according to the isdn lapd protocol, bit 1 of the high byte address will be interpreted as command/response bit (c/r) dependent on the setting of the cri bit in sap1, and will be excluded from the address comparison. similarly, the low address byte is compared with the fixed value ff h (group tei) and two compare values programmed in special registers (tei1, tei2). a valid address will be recognized in case the high and low byte of the address field match one of the compare values. the ipac can be called (addressed) with the following address combinations: C sap1/tei1 C sap1/ff h C sap2/tei2 C sap2/ff h Cfe h (fc h )/tei1 Cfe h (fc h )/tei2 Cfe h (fc h )/ff h only the logical connection identified through the address combination sap1, tei1 will be processed in the auto mode, all others are handled as in the non-auto mode. the logical connection handled in the auto mode must have a window size 1 between transmitted and acknowledged frames. hdlc frames with address fields that do not match with any of the address combinations, are ignored by the ipac. in case of a 1-byte address, tei1 and tei2 will be used as compare registers. according to the x.25 lapb protocol, the value in tei1 will be interpreted as command and the value in tei2 as response. the control field is stored in rhcrd register and the i field in rfifod. additional information is available in rstad. non-auto mode (mds2, mds1 = 01) characteristics: full address recognition (1 or 2 bytes) arbitrary window sizes all frames with valid addresses are accepted and the bytes following the address are transferred to the m p via rhcrd and rfifod. additional information is available in rstad.
psb 2115 psf 2115 functional description semiconductor group 44 11.97 transparent mode 1 (mds2, mds1, mds0 = 101). characteristics: tei recognition a comparison is performed only on the second byte after the opening flag, with tei1, tei2 and group tei (ff h ). in case of a match, the first address byte is stored in sapr, the (first byte of the) control field in rhcrd, and the rest of the frame in the rfifod. additional information is available in rstad. transparent mode 2 (mds2, mds1, mds0 = 110). characteristics: no address recognition every received frame is stored in rfifod (first byte after opening flag to crc field). additional information can be read from rstad. transparent mode 3 (mds2, mds1, mds0 = 111). characteristics: sapi recognition a comparison is performed on the first byte after the opening flag with sap1, sap2 and group sapi (fe h /fc h ). in the case of a match, all the following bytes are stored in rfifod. additional information can be read from rstad.
psb 2115 psf 2115 functional description semiconductor group 45 11.97 2.2.1.2 reception of frames a 2x32-byte fifo buffer (receive pools) is provided in the receive direction. the control of the data transfer between the cpu and the ipac is handled via interrupts. there are two different interrupt indications concerned with the reception of data: C rpf ( r eceive p ool f ull) interrupt, indicating that a 32-byte block of data can be read from the rfifod and the received message is not yet complete. Crme ( r eceive m essage e nd) interrupt, indicating that the reception of one message is completed, i.e. either ? one message 32 bytes, or ? the last part of a message 3 32 bytes is stored in the rfifod. depending on the message transfer mode the address and control fields of received frames are processed and stored in the receive fifo or in special registers as depicted in figure 15 . the organization of the rfifod is such that, in the case of short ( 32 bytes), successive messages, up to two messages with all additional information can be stored. the contents of the rfifod would be, for example, as shown in figure 14 . figure 14 contents of rfifod (short message) itd09622 31 31 0 0 receive message 2 bytes) 32 1 ( message receive rme rme interrupts in wait line rfifod _ < bytes) 32 ( < _
psb 2115 psf 2115 functional description semiconductor group 46 11.97 figure 15 receive data flow note 1: only if a 2-byte address field is defined (mds0 = 1 in moded register). note 2: comparison with group tei (ff h ) is only made if a 2-byte address field is defined (mds0 = 1 in moded register). note 3: in the case of an extended, modulo 128 control field format (mcs = 1 in sap2 register) the control field is stored in rhcrd in compressed form (i frames). note 4: in the case of extended control field, only the first byte is stored in rhcrd, the second in rfifod. flag address high low address control information crc flag sap1,sap2 fe,fc ff tei1,tei2 rhcrd rfifod rstad rstad rfifod rhcrd tei1,tei2 ff fe,fc sap1,sap2 rstad rfifod tei1,tei2 ff rstad rfifod rstad rfifod fe,fc sap1,sap2 sapr (note 1) (note 1) (note 2) (note 2) (note 3) (note 4) itd09623 auto-mode (u and i frames) non-auto mode transparent mode 1 transparent mode 2 transparent mode 3 description of symbols: checked automatically by ipac compared with register or fixed value stored into register or rfifod rhcrd (note 4)
psb 2115 psf 2115 functional description semiconductor group 47 11.97 when 32 bytes of a message longer than that are stored in rfifod, the cpu is prompted to read out the data by an rpf interrupt. the cpu must handle this interrupt before more than 32 additional bytes are received, which would cause a data overflow ( figure 16 ). this corresponds to a maximum cpu reaction time of 16 ms (data rate 16 kbit/s). after a remaining block of less than or equal to 16 bytes has been stored, it is possible to store the first 16 bytes of a new message (see figure 16 ). the internal memory is now full. the arrival of additional bytes will result in data overflow and a third new message in frame overflow. the generated interrupts are inserted together with all additional information into a wait line to be individually passed to the cpu. after an rpf or rme interrupt has been processed, i.e. the received data has been read from the rfifod, this must be explicitly acknowledged by the cpu issuing a rmc (receive message complete) command. the ipac can then release the associated fifo pool for new data. if there is an additional interrupt in the wait line it will be generated after the rmc acknowledgment. figure 16 contents of rfifod (long message) itd09624 31 31 0 0 message 2 bytes) 48 1 ( message long rpf rme interrupts in the queue rfifod rfifod the queue interrupts in rpf rpf long message 0 0 31 31 15 16 rme 32 ( bytes) _ < < _
psb 2115 psf 2115 functional description semiconductor group 48 11.97 information about the received frame is available for the m p when the rme interrupt is generated, as shown in table 2 . table 2 receive information at rme interrupt information register bit mode first byte after flag (sapi of lapd address field) sapr C transparent mode 1 control field rhcrd C auto mode, i (modulo 8) and u frames compressed control field rhcrd C auto mode, i frames (modulo 128) 2 nd byte after flag rhcrd C non-auto mode, 1-byte address field 3 rd byte after flag rhcrd C non-auto mode, 2-byte address field transparent mode 1 type of frame (command/ response) rstad c/r auto mode, 2-byte address field non-auto mode, 2-byte address field transparent mode 3 recognition of sapi rstad sa1-0 auto mode, 2-byte address field non-auto mode, 2-byte address field transparent mode 3 recognition of tei rstad ta all except transparent mode 2,3 result of crc check (correct/ incorrect) rstad crc all data available in rfifod (yes/no) rstad rda all abort condition detected (yes/no) rstad rab all data overflow during reception of a frame (yes/no) rstad rdo all number of bytes received in rfifod rbcld rbc4-0 all message length rbcld rbchd rbc11-0 all
psb 2115 psf 2115 functional description semiconductor group 49 11.97 2.2.1.3 transmission of frames a 2 32 byte fifo buffer (transmit pools) is provided in the transmit direction. if the transmit pool is ready (which is true after an xpr interrupt or if the xfw bit in stard is set), the cpu can write a data block of up to 32 bytes to the transmit fifo. after this, data transmission can be initiated by command. the transmission of transparent frames (command: xtf) and i frames (command: xif) is shown in figure 17 . figure 17 transmit data flow itd09625 description of symbols: generated automatically by ipac written initially by cpu (into register) loaded (repeatedly) by cpu upon ipac request (xpr interrupt) xfifod xad1 xad2 xfifod address high low address control information crc flag appended if cpu has issued transmit message end (xme) command. if 2 byte address field selected * transmit transparent frame (auto-mode only!) i frame * transmit transmitted hdlc frame flag
psb 2115 psf 2115 functional description semiconductor group 50 11.97 for transparent frames, the whole frame including address and control field must be written to the xfifod. the transmission of i frames is possible only if the ipac is operating in the auto mode. the address and control field is autonomously generated by the ipac and appended to the frame, only the data in the information field must be written to the xfifod. if a 2-byte address field has been selected, the ipac takes the contents of the xad 1 register to build the high byte of the address field, and the contents of the xad 2 register to build the low byte of the address field. additionally the c/r bit (bit 1 of the high byte address, as defined by lapd protocol) is set to 1 or 0 depending on whether the frame is a command or a response. in the case of a 1-byte address, the ipac takes either the xad 1 or xad 2 register to differentiate between command or response frame (as defined by x.25 lapb). the control field is also generated by the ipac including the receive and send sequence number and the poll/final (p/f) bit. for this purpose, the ipac internally manages send and receive sequence number counters. in the auto mode, s frames are sent autonomously by the ipac. the transmission of u frames, however, must be done by the cpu. u frames must be sent as transparent frames (xtf), i.e. address and control field must be defined by the cpu. once the data transmission has been initiated by command (xtf or xif), the data transfer between cpu and ipac is controlled by interrupts. the ipac repeatedly requests another data packet or block by means of an xpr interrupt, every time no more than 32 bytes are stored in the xfifod. the processor can then write further data to the xfifod and enable the continuation of frame transmission by issuing an xif/xtf command. if the data block which has been written last to the xfifod completes the current frame, this must be indicated additionally by setting the xme (transmit message end) command bit. the ipac then terminates the frame properly by appending the crc and closing flag. if the cpu fails to respond to an xpr interrupt within the given reaction time, a data underrun condition occurs (xfifod holds no further valid data). in this case, the ipac automatically aborts the current frame by sending seven consecutive ones (abort sequence). the cpu is informed about this via an xdu (transmit data underrun) interrupt. it is also possible to abort a message by software by issuing an xres (transmitter reset) command, which causes an xpr interrupt. after an end of message indication from the cpu (xme command), the termination of the transmission operation is indicated differently, depending on the selected message transfer mode and the transmitted frame type.
psb 2115 psf 2115 functional description semiconductor group 51 11.97 if the ipac is operating in the auto mode, the window size (= number of outstanding unacknowledged frames) is limited to 1; therefore an acknowledgment is expected for every i frame sent with an xif command. the acknowledgment may be provided either by a received s or i frame with corresponding receive sequence number (see figure 14 ). if no acknowledgment is received within a certain time (programmable), the ipac requests an acknowledgment by sending an s frame with the poll bit set (p = 1) (rr or rnr). if no response is received again, this process is repeated in total cnt times (retry count, programmable via timr1 register). the termination of the transmission operation may be indicated either with: C xpr interrupt, if a positive acknowledgment has been received, C xmr interrupt, if a negative acknowledgment has been received, i.e. the transmitted message must be repeated (xmr = transmit message repeat), C tin interrupt, if no acknowledgment has been received at all after cnt times the expiration of the time period t 1 (tin = timer interrupt, xpr interrupt is issued additionally). note: prerequisite for sending i frames in the auto mode (xif) is that the internal operational mode of the timer has been selected in the moded register (tmd bit = 1). the transparent transmission of frames (xtf command) is possible in all message transfer modes. the successful termination of a transparent transmission is indicated by the xpr interrupt. a transmission may be aborted from the outside (e 1 d) which has the effect that the stop/go bit is set to 1, provided dim1-0 (moded register) are programmed appropriately. an example of this is the occurrence of an s bus d-channel collision. if this happens before the first fifo pool has been completely transmitted and released, the ipac will retransmit the frame automatically as soon as transmission is enabled again. thus no m p interaction is required. on the other hand, if a transmission is inhibited by the stop/go bit after the first pool has already been released (and xpr generated), the ipac aborts the frame and requests the processor to repeat the frame with an xmr interrupt. in lt-t mode the stop/go bit can be output on pin aux7 which may be used for test purposes.
psb 2115 psf 2115 functional description semiconductor group 52 11.97 2.3 control procedures control procedures describe the commands and messages required to control the ipac psb 2115 in different modes and situations. this chapter shows the user how to activate and deactivate the device under various circumstances. in order to keep this chapter as application oriented as possible only actions and reactions the user needs to initiate or may observe are mentioned. 2.3.1 activation initiated by exchange (lt-s) 2.3.2 activation initiated by terminal (te/lt-t) the following scheme illustrates how a terminal initiates an activation. te/lt-t iom -2 lt-s iom -2 ? c/i dc (1111b) c/i dc (1111b) ? ; initial state is g1 deactivated ? c/i di (1111b) c/i di (1111b) ? ; and f3 power down ? c/i rsy (0100b) c/i ar (1000b) _ ; start activation ? c/i ar (1000b) c/i ar (1000) ? ? c/i ai (1100b) c/i ai (1100) ? ; activation completed ? c/i ar8/ar10 (1000b/1001b) te/lt-t iom -2 lt-s iom -2 ? c/i dc (1111b) c/i dc (1111b) ? ; initial state is g1 deactivated ? c/i di (1111b) c/i di (1111b) ? ; and f3 power down _ c/i tim (0000b) ; request timing (iom clocks) ? c/i pu (0111b) _ c/i ar8 (1000b) _ tim release ; start activation ? c/i rsy (0100b) ; transfer to g3 activated ? c/i ar (1000b) c/i ar (1000b) ? ; ? c/i ai (1100b) c/i ai (1100b) ? ;
psb 2115 psf 2115 functional description semiconductor group 53 11.97 2.3.3 deactivation a deactivation of the s-interface can only be initiated by the exchange side (ipac in lt-s mode). it is possible to begin a deactivation process from all interim activation states, i.e. not only from the fully activated state. the following example nevertheless assumes that the line is fully activated when the deactivation is initialized. te/lt-t iom -2 lt-s iom -2 ? c/i ai8 (1100b) c/i ai (1100b) ? ; initial state ? c/i dr (0000b) c/i dr (0000b) _ ; start deactivation _ c/i di (1111b) c/i tim (0000b) ? ; ? c/i dc (1111b) c/i di (1111b) ? ; g1 deactivated c/i dc (1111b) _ ; transfer to f3 power down (only in intelligent nt mode, not in lt-s mode
psb 2115 psf 2115 functional description semiconductor group 54 11.97 2.3.4 d-channel access control d-channel access control was defined to guarantee all connected tes and hdlc controllers a fair chance to transmit data in the d-channel. figure 18 illustrates that collisions are possible on the tic- and the s-bus. figure 18 d-channel access control on tic bus and s bus
psb 2115 psf 2115 functional description semiconductor group 55 11.97 the tic bus is used to control d-channel access on the iom interface when more than one hdlc controller is connected. this configuration is illustrated in the above figure for te1 where three iccs are connected to one iom-2 bus. on the s bus the d-channel control is handled according to the itu recommendation i.430. this control mechanism is required everytime a point to multipoint configuration is implemented (nt ? te1 te8). while the s-bus collision detection is handled by the s interface control of the ipac, tic bus access is mainly controlled by the d-channel hdlc controller of the ipac or from external devices on the iom-2 interface (e.g. icc). the following sections describe both control mechanisms because the tic bus, although largely handled by the hdlc controller, represents an important part of d-channel access. 2.3.4.1 tic bus d-channel control in te the tic bus was defined to organize d- and c/i channel access when two or more d- and c/i channel controllers can access the same iom-2 timeslot. bus access is controlled by five bits in iom-2 channel no. 2 (see section 2.7.1 ): when a controller wants to write to the d or c/i channel the following procedure is executed: 1. controller checks whether bac bit is set to one. if this is not the case access currently is not allowed: the controller has to postpone transmission. only if bac = 1 the controller may continue with the access procedure. 2. the controller transmits its tic bus address (tba02). this is done in the same frame in which bac = 1 was recognized. on the tic bus binary zeros overwrite binary ones. thus low tic bus addresses have higher priority. 3. after transmitting a tic bus address bit, the value is read back (with the falling edge) to check whether its own address has been overwritten by a controller with higher priority. this procedure will continue until all three address bits are sent and confirmed. in case a bit is overwritten by an external controller with higher priority, the controller asking for bus access has to withdraw immediately from the bus by setting all tic bus address bits to one. 4. if access was granted, the controller will put the d-channel data onto the iom-2 bus in the following frame provided the s/g bit is set to zero (i.e. s-bus free to transmit). the bac bit will be set to zero by the controller to block all remaining controllers. in case the s/g bit is one this prevents only the d-channel data to be switched upstream: bac bus access control bit tba0 2 tic bus address bits 0 2 downstream: s/g stop/go bit
psb 2115 psf 2115 functional description semiconductor group 56 11.97 through to the iom-2 bus. the tic bus request remains unaffected (i.e. if access was granted the tic address and bac bit are activated). as soon as the s-bus d-channel is clear and the s/g bit was set back to go the controller will commence with data transmission. the s/g bit generation in iom-2 channel 2 is handled automatically by the ipac operating in te mode. 5. after the transmission of an hdlc frame has been completed the d-channel controller withdraws from the tic bus for two iom-2 frames. this also applies when a new hdlc frame is to be transmitted in immediate succession. with this mechanism it is ensured that all connected controllers receive an equally fair chance to access the tic bus. 2.3.4.2 s-bus priority mechanism for d-channel the s-bus access procedure specified in itu i.430 was defined to organize d-channel access with multiple tes connected to a single s-bus. to implement collision detection the d (channel) and e (echo) bits are used. the d- channel s-bus condition is indicated towards the iom-2 interface with the s/g bit (see previous section). the access to the d-channel is controlled by a priority mechanism which ensures that all competing tes are given a fair access chance. this priority mechanism discriminates among the kind of information exchanged and information exchange history: layer-2 frames are transmitted in such a way that signalling information is given priority (priority class 1) over all other types of information exchange (priority class 2). furthermore, once a te having successfully completed the transmission of a frame, it is assigned a lower level of priority of that class. the te is given back its normal level within a priority class when all tes have had an opportunity to transmit information at the normal level of that priority class. the priority mechanism is based on a rather simple method: a te not transmitting layer- 2 frames sends binary 1s on the d-channel. as layer-2 frames are delimited by flags consisting of the binary pattern 01111110 and zero bit insertion is used to prevent flag imitation, the d-channel may be considered idle if more than seven consecutive 1s are detected on the d-channel. hence by monitoring the d echo channel, the te may determine if the d-channel is currently used by another te or not. a te may start transmission of a layer-2 frame first when a certain number of consecutive 1s has been received on the echo channel. this number is fixed to 8 in priority class 1 and to 10 in priority class 2 for the normal level of priority; for the lower level of priority the number is increased by 1 in each priority class, i.e. 9 for class 1 and 11 for class 2. a te, when in the active condition, is monitoring the d echo channel, counting the number of consecutive binary 1s. if a 0 bit is detected, the te restarts counting the number of consecutive binary 1s. if the required number of 1s according to the actual
psb 2115 psf 2115 functional description semiconductor group 57 11.97 level of priority has been detected, the te may start transmission of an hdlc frame. if a collision occurs, the te immediately shall cease transmission, return to the d-channel monitoring state, and send 1s over the d-channel. 2.3.4.3 s-bus d-channel control in tes if the ipac is not in a point-to-point configuration in te mode, d-channel collision on the s-bus can occur. for this purpose the characteristic of the d-channel mode register must be programmed to dim2-0 = 001 or 011 (refer to table 27 of chapter 4.3.7 ) for d-channel collision resolution according to itu i.430. in this case the ipac continuously compares the d data bits with the received e-echo bits. depending on the priority class selected (8 or 10), the s/g bit is controlled in a way that data transmission by the internal d-channel controller or by an externally connected icc will start after the appropriate number of e-bits set to 1 are detected by the layer 1 transceiver. the priority class (priority 8 or priority 10) is selected by transferring the appropriate activation command via the command/indication (c/i) channel of the iom-2 interface to the ipac s-interface. if the activation is initiated by a te, the priority class is selected implicitly by the choice of the activation command. if the s-interface is activated from the nt, an activation command selecting the desired priority class should be programmed at the te on reception of the activation indication (ai8). in the activated state the priority class may be changed whenever required by simply programming the desired activation request command (ar8 or ar10).
psb 2115 psf 2115 functional description semiconductor group 58 11.97 application 1. priority class 8/10 selection with nt initiated activation 2. priority class 8/10 selection with te initiated activation te iom -2 lt-s (nt) iom -2 ? c/i dc (1111b) c/i dc (1111b) ? ? c/i di (1111b) c/i di (1111b) ? ? c/i rsy (0100b) c/i ar (1000b) _ ; start activation from ? c/i ar (1000b) c/i ar (1000b) ? ; nt side ? c/i ai (1100b) ; _ c/i ar8 (1000b) c/i al (1100b) ? ; allocate highest priority d: transfer hdlc frame c/i al (1100b) _ ; (e.g. for signaling data) _ c/i ar10 (1001b) ; allocate lower priority d: transfer packet data ; for packet data ? c/i ai10 (1101b) te iom -2 nt iom -2 ? c/i dc (1111b) c/i dc (1111b) ? ? c/i di (1111b) c/i di (1111b) ? _ c/i tim (0000b) ; request timing (iom clocks) ? c/i pu (0111b) _ c/i ar10 (1001b) ; activation with second _ c/i tim release c/i ar (1000b) ? ; priority (e.g. for packet data) ? c/i rsy (0100b) c/i ar (1000b) _ ? c/i ar (1000b) c/i ai (1100b) ? ? c/i ai10 (1101b) c/i ai (1100b) _ ; d: transfer packet data _ c/i ar8 (1000b) ; allocate highest priority d: transfer hdlc frame ? c/i ai8 (1100b)
psb 2115 psf 2115 functional description semiconductor group 59 11.97 2.3.4.4 s-bus d-channel control in lt-t in lt-t mode the ipac is primarily considered to be in a point-to-point configuration. in these configurations no s-bus d-channel collision can occur, therefore the default setting after resetting the ipac is transparent (iom-2 ? s-bus) d-channel transmission. in case a point to multipoint configuration is implemented, the characteristic of the d- channel mode register must be programmed to dim2-0 = 001 or 011 (refer to table 27 of chapter 4.3.7 ) for d-channel collision resolution according to itu i.430. priority allocation is identical to that described for the te mode. 2.3.4.5 d-channel control in the intelligent nt (tic- and s-bus) in intelligent nt applications both the ipac and one or more d-channel controllers on the s interface and/or the iom-2 interface have to share a single upstream d-channel. the intelligent nt configuration involves a layer-1 device (e.g. iec-q te) operating in te mode (1.536 mhz dcl rate) and an ipac in lt-s mode with its d-channel controller operating in te timing mode (d-channel transmitting in iom-2 channel 0). the ipac incorporates an elaborate statemachine for d-channel priority handling on iom-2. for the access to the d-channel a similar arbitration mechanism as on the s interface (writing d-bits, reading back e-bits) is performed for the local d-channel sources (local access), i.e. for the ipac d-channel controller and for a d-channel controller connected to the iom-2 interface (e.g. icc peb 2070). due to this an equal and fair access is guaranteed for all d-channel sources on both the s interface and the iom-2 interface. for this purpose the ipac is set in lt-s mode with its layer 1 function programmed to channel 1 and nt state machine activated. therefore the layer 1 uses the c/i1 channel (which is realized by the layer 2 function), however the b1-, b2- and d-channels have to be mapped in iom channel 0. the layer 2 function is configured to te timing mode (d- and c/i-channel controller transmits on c/i0 and evaluates c/i0 and c/i1) with s/g bit evaluation (refer to table 27 of chapter 4.3.7 ). the priority handler for d-channel access on iom-2 is enabled and the priority 8 or 10 is selected. the configuration settings of the ipac in intelligent nt applications are summarized in table 3 .
psb 2115 psf 2115 functional description semiconductor group 60 11.97 with the configuration settings shown above the ipac in intelligent nt applications provides for equal access to the d-channel for terminals connected to the s-interface and for d-channel sources on iom-2. for a detailed understanding the following sections provide a complete description on the procedures used by the d-channel priority handler on iom-2, although this may not be necessary to use this mode. table 3 ipac configuration settings in intelligent nt applications functional block configuration description configuration setting layer 1 select lt-s mode pins: mode0 = 1 mode1 = 0 select iom-2 channel 1 pins: ch2-0 = 001 activate nt state machine mon-8 configuration register: fsmm = 1 map channels b1, b2 and d to iom channel 0 mon-8 iom-2 channel register: b1l = 1, b2l = 1, dl = 1 layer 2 select te timing mode register: spcr:spm = 0 enable s/g bit evaluation register: moded:dim2-0 = 001 enable d-channel priority handler on iom-2 register: conf:idh = 1 select priority 8 or 10 for d-channel priority handler on iom-2 register: scfg:pri
psb 2115 psf 2115 functional description semiconductor group 61 11.97 1. nt d-channel controller transmits upstream in the initial state (ready state) neither the local d-channel sources nor any of the terminals connected to the s-bus transmit in the d-channel. the ipac s-transceiver thus receives bac = 1 (iom-2 du line) and transmits s/g = 0 (iom-2 dd line). the access will then be established according to the following procedure: ? local d-channel source verifies that bac bit is set to one (currently no bus access). ? local d-channel source issues tic bus address and verifies that no controller with higher priority requests transmission. ? local d-channel source issues bac = 0 to block other sources on iom-2 and starts d-channel transmission. ? ipac s-transceiver transmits inverted echo channel (e bits) on the s-bus to block all connected s-bus terminals (e = d ). ? local d-channel source commences with d data transmission on iom-2 as long as it receives s/g = 0. ? after d-channel data transmission is completed the controller sets the bac bit to one. ? ipac s-transceiver pulls s/g bit to one (ready state) to block the d-channel controller on iom-2. ? ipac s-transceiver transmits non-inverted echo (e = d). ? ipac s-transceiver pulls s/g bit to zero (idle state) as soon as n d-bits = 1 are counted on iom-2 (see note) to allow for further d-channel access. note: right after transmission the s/g bit is pulled to 1 until n successive d-bits = 1 occur on the iom-2 interface. as soon as n d-bits = 1 are seen, the s/g bit is set to 0 and the ipac d-channel controller may start transmission again. this allows an equal access for d-channel sources on iom-2 and on the s interface. the number n depends on configuration settings (selected priority 8 or 10) and the condition of the previous transmission, i.e. if an abort was seen (n = 8 or 10, respectively) or if the last transmission was successful (n = 9 or 11, respectively). figure 19 illustrates the signal flow in an intelligent nt and the algorithm of the d- channel priority handler on iom-2 implemented in the ipac.
psb 2115 psf 2115 functional description semiconductor group 62 11.97 2. terminal transmits d-channel data upstream the initial state is identical to that described in the last paragraph. when one of the connected s-bus terminals needs to transmit in the d-channel, access is established according to the following procedure: ? ipac s-transceiver (in intelligent nt) recognizes that the d-channel on the s-bus is active. ? ipac s-transceiver sets s/g = 1 to block local d-channel sources. ? ipac s-transceiver transfers s-bus d-channel data transparently through to the upstream iom-2 bus (iom-2 channel 0). ? after d-channel transmission has been completed by the terminal and the ipac s-transceiver in the intelligent nt recognizes the idle condition (i.e. eight consecutive d=1) on the s-bus d-channel, the s/g bit is set to zero. for both cases described above the exchange indicates via the a/b bit (controlled by layer 1) that d-channel transmission on this line is permitted (a/b = 1). data transmission could temporarily be prohibited by the exchange when only a single d-channel controller handles more lines (a/b = 0, elic-concept). in case the exchange prohibits d data transmission on this line the a/b bit is set to 0 (block). for u pn applications with s extension this forces the intelligent nt ipac s- transceiver to transmit an inverted echo channel on the s-bus, thus disabling all terminal requests, and switches s/g to a/b , which blocks the d-channel controller in the intelligent nt. note: although the ipac s-transceiver operates in lt-s mode and is pinstrapped to iom-2 channel 0 or 1 it will write into iom-2 channel 2 at the s/g bit position.
psb 2115 psf 2115 functional description semiconductor group 63 11.97 figure 19 data flow for collision resolution procedure in intelligent nt
psb 2115 psf 2115 functional description semiconductor group 64 11.97 the state machine for d-channel access in the intelligent nt describes four states and four types of conditions for state transition: the number n of d=1 which has to be counted on iom-2 by the state machine for state transition t2 is described in the table below: note: d=idle implies that 8 consecutive 1 are detected on the d-channel. states ready the d-channel is transparent to the layer 1 (d ,20 = d 6 ) and no device occupies the d-channel (bac=1). the echo bits correspond to the received d-bits on the s-interface. the layer 2 is blocked (s/g=1) until the required number (priority) of d=1 are counted on iom-2. idle this state is identical to the ready state, except the layer 2 may also start transmission on the d-channel (s/g=0). s access the d-channel is transparent to the layer 1 and occupied by a source on the s-interface. the layer 2 is blocked (s/g=1). local access the d-channel is occupied by the ipac d-channel controller or by another d-channel controller on iom-2. this is indicated by bac=0. the echo-bits are set to d (terminals on s are blocked). state transition conditions t1 a terminal on the s-interface has started transmission on the d- channel (d s =0). preceeding this, the required number of d=1 (according to the priority setting) was written and read back (e-bits) on the s-interface. t2 the required number of d=1 is counted on the iom-2 interface, so the ipac d-channel controller may start transmission again. t3 the ipac layer 2 controller has started transmission on the d-channel (d d = idle ). t4 the ipac layer 2 controller has stoped transmission on the d-channel (d d = idle), i.e. the end flag of the previous frame or an abort is detected. previous transmission of nt d-channel controller successful (end flag seen) not successful (abort seen) configured priority prio = 8 (scfg:pri=0) n = 9 n = 8 prio = 10 (scfg:pri=1) n = 11 n = 10
psb 2115 psf 2115 functional description semiconductor group 65 11.97 2.3.5 iom -2 interface channel switching in order to realize intelligent nt configurations the ipac provides basic switching functions. these include: ? individual channel transfer from the selected (i.e. pin strapped) iom-2 channel (channel 0 or 1) to iom-2 channel 0. ? individual channel reversion on input and output lines. all switching functions are controlled via the mon-8 iom-2 channel register (see mon- 8 description). the following sections illustrate a variety of possible switching combinations typical for the intelligent nt. to facilitate the description of the switching function figure 20 illustrates a typical intelligent nt with the speech codec arcofi combined with several terminals. monitor programming for both arcofi and ipac can only be performed in monitor channel 1. figure 20 intelligent nt-configuration for iom -2 channel switching
psb 2115 psf 2115 functional description semiconductor group 66 11.97 the following four examples illustrate typical switching operations. three of them are programmed in the iom-2 channel register, example no. 4 makes use of the loopback register. all register bits related to the b1 or b2 channel are set to zero unless otherwise stated. 1. connection b1 (e.g. te1) ? exchange, b2 (e.g. te8) ? exchange 2. connection b1 (e.g. te1) ? exchange, b2 (e.g. te8) ? u-te its09627 b1l =1 b2l=1 ipac (lt-s) iom -2 r reg. arcofi power-down dd du du dd din d out b 1 b 2 b 1 b 2 r exchange its09628 voice data to ic2 b 1 b1 ic2 ic2 1l b=1 b= 2d 1 ipac (lt-s) dd du iom r -2 reg. du dd arcofi r exchange out d din
psb 2115 psf 2115 functional description semiconductor group 67 11.97 3. connection u-te (b1) ? exchange, b2 (e.g. te1) ? exchange 4. connection te1 (b1) ? te8 (b2), u-te (b1 or b2) ? exchange its09629 b2 b2 b1 b1 ipac (lt-s) b2l =1 du dd iom r -2 reg. exchange out d din arcofi voice data to b1 r du dd its09630 ib1 = 1 b2 loopback reg. 1 = ib2 1 = ib12 b2 b1 b2 b1 or b1 b1 or b2 ipac (lt-s) du dd exchange out d din voice data to b1 or b2 arcofi du r dd (iom -2 channel 0) r channel 1) (iom -2 r
psb 2115 psf 2115 functional description semiconductor group 68 11.97 2.4 s/t interface 2.4.1 operating modes the s-transceiver supports terminal mode (te), line termination subscriber side mode (lt-s) and line termination trunk side mode (lt-t). the selection is performed by two mode pins (see table 4 ), additionally the b-channel receive and transmit data paths are switched to du or dd line depending on the mode ( figure 21 ). in other words, the du line always carries data which is transferred from the subscriber to the central office and the dd line carries data which comes from the central office to the subscriber. therefore the direction of du and dd is mode dependent: ? du is input, dd is output (te and lt-t) ? du is output, dd is input (lt-s) in lt-s and lt-t mode the eaw pin is used as the second mode pin. figure 21 data path switching table 4 mode setting mode0 mode1/ eaw transmit-data on s receive-data on s te-mode 0 eaw du on iom dd on iom lt-t mode 1 1 du on iom dd on iom lt-s mode 1 0 dd on iom du on iom
psb 2115 psf 2115 functional description semiconductor group 69 11.97 2.4.2 s/t-interface coding transmission over the s/t-interface is performed at a rate of 192 kbit/s. pseudo-ternary coding with 100 % pulse width is used ( see following section ). 144 kbit/s are used for user data (b1+b2+d), 48 kbit/s are used for framing and maintenance information. the ipac uses two symmetrical, differential outputs (sx1, sx2) and two symmetrical, differential inputs (sr1, sr2). these signals are coupled via external circuitry and two transformers onto the 4 wire s-interface. the nominal pulse amplitude on the s-interface is 750 mv (zero-peak). the following figure illustrates the code used. a binary one is represented by no line signal. binary zeros are coded with alternating positive and negative pulses with two exceptions: the first binary zero following the framing balance bit is of the same polarity as the framing-balancing bit (required code violation) and the last binary zero before the framing bit is of the same polarity as the framing bit. figure 22 s/t -interface line code (without code violation) a standard s/t frame consists of 48 bits. in the direction te ? nt the frame is transmitted with a two bit offset. for details on the framing rules please refer to itu i.430 section 6.3. the following figure illustrates the standard frame structure for both directions (nt ? te and te ? nt) with all framing and maintenance bits.
psb 2115 psf 2115 functional description semiconductor group 70 11.97 figure 23 frame structure at reference points s and t (itu i.430) note: the itu i.430 standard specifies s1 - s5 for optional use. the ipac supports s1 - s2. C f framing bit f = (0b) ? identifies new frame (always positive pulse) C l. d.c. balancing bit l. = (0b) ? number of binary zeros sent after the last l. bit was odd C d d-channel data bit signaling data specified by user C e d-channel echo bit e = d ? no d-channel collision. zeros overwrite ones Cf a auxiliary framing bit see section 6.3 in itu i.430 Cn n = C b1 b1-channel data bit user data C b2 b2-channel data bit user data C a activation bit a = (0b) ? info 2 transmitted a = (1b) ? info 4 transmitted C s s-channel data bit s 1 or s 2 channel data (see note below) C m multiframing bit m = (1b) ? start of new multi-frame f a
psb 2115 psf 2115 functional description semiconductor group 71 11.97 2.4.3 s/t-interface multiframing according to itu recommendation i.430 a multi-frame provides extra layer 1 capacity in the te-to-nt direction through the use of an extra channel between the te and nt (q- channel). the q bits are defined to be the bits in the f a bit position. in the nt-to-te direction the s channel bits are used for information transmission. two s channels (s1 and s2) out of five possible s channels can be accessed by the ipac. the s and q channels are accessed via the iom-2 interface monitor channel. the following table shows the s and q bit positions within the multi-frame. table 5 multiframe structure frame number nt-to-te f a bit position nt-to-te m bit nt-to-te s bit te-to-nt f a bit position 1 2 3 4 5 one zero zero zero zero one zero zero zero zero s11 s21 zero zero zero q1 zero zero zero zero 6 7 8 9 10 one zero zero zero zero zero zero zero zero zero s12 s22 zero zero zero q2 zero zero zero zero 11 12 13 14 15 one zero zero zero zero zero zero zero zero zero s13 s23 zero zero zero q3 zero zero zero zero 16 17 18 19 20 one zero zero zero zero zero zero zero zero zero s14 s24 zero zero zero q4 zero zero zero zero 1 2 one zero one zero s11 s21 q1 zero
psb 2115 psf 2115 functional description semiconductor group 72 11.97 in te and lt-t mode the ipac identifies the q-bit position (after multi-frame synchronization has been established) by waiting for the f a bit inversion in the received s/t-interface data stream (f a [nt ? te] = binary one). after successful identification, the q data will be inserted at the upstream (te ? nt) f a bit position. when synchronization is not achieved or lost, it mirrors the received f a bits. multi-frame synchronization is achieved after two complete multi-frames have been detected with reference to f a /n bit and m bit positions. multi-frame synchronization is lost after two or more bit errors in f a /n bit and m bit positions have been detected in sequence, i.e. without a complete valid multi-frame between. the multi-frame synchronization can be disabled by programming (mfd-bit in mon-8 configuration register). 2.4.4 s/t transceiver control 2.4.4.1 mon-8 commands (internal register access) the s/t transceiver of the ipac psb 2115 contains four internal registers. access to these registers is only possible via the iom-2 monitor channel. the following registers are implemented in the ipac: ? configuration register ? loop-back register ? iom-2 channel register ? sm/ci register the structure of mon-8 write and read request/response commands are shown in the three tables below:
psb 2115 psf 2115 functional description semiconductor group 73 11.97 table 6 mon-8 write to register structure table 7 mon-8 read register request structure the response issued by the ipac after having received a read register request has the following structure. table 8 mon-8 read response structure the following sections describe the register features. 1. byte 2. byte 1 0 0 0 r r r r d7 d6 d5 d4 d3 d2 d1 d0 mon-8 reg. address register data write 1. byte 2. byte 100000000000 r r r r mon-8 reg. address 1. byte 2. byte 1 0 0 0 r r r r d7 d6 d5 d4 d3 d2 d1 d0 mon-8 reg. adr. confirmation register data read
psb 2115 psf 2115 functional description semiconductor group 74 11.97 2.4.4.2 mon-8 configuration register in the configuration register the user programs the ipac for different operational modes, and selects required s-bus features. the following paragraphs describe the application relevance of all individual configuration register bits. value after reset: 00 h address: 1h mfd 0 fsmm lp sqm rcve c/w/p 0 rd/wr mfd multi-frame-disable. selects whether multiframe generation (lt-s) or synchronization (te, lt-t) is prohibited (mfd=1) or allowed (mfd=0). enable multiframing if s/q channel data transfer is desired. if mfd=1 no s/q monitor messages are released. when reading this register the bit indicates whether multiframe synchronization has been established (mfd=1) or not (mfd=0). fsmm finite state machine mode. by programming this bit the user has the possibility to exchange the state machines of lt-s and nt, i.e. an ipac pin strapped for lt-s operates with a nt state machine. all other operation mode specific characteristics are retained. this function is used in intelligent nt configurations where the ipac needs to be pin-strapped to lt-s mode but the state machine of an nt is desirable. lp loop transparency. in case analog loop-backs are closed with c/i = arl or bit sc in the loop-back register, the user may determine with this bit, whether the data is forwarded to the s/t-interface outputs (transparent) or not. the default setting depends on the operational mode. te/lt-t modes: 0 = non transparent 1 = transparent ext. loop lt-s mode: 0 = transparent 1 = non transparent in lt-s by default transparency is selected (lp=0), for lt-t and te non- transparency is standard (lp=0).
psb 2115 psf 2115 functional description semiconductor group 75 11.97 sqm selects the sq channel handling mode. in non-auto mode operation, the ipac issues s1 and q messages in the iom-2 monitor channel only after a change has been detected. the s2 channel is not available in non-auto mode. in transparent mode monitor messages containing the s1, s2 and q data are forwarded to iom-2 once per multiframe (5 ms), regardless of the data content. programming the sqm bit is only relevant if multiframing on s/t is selected (bit mfd configuration register). see also mon-1 and mon-2 monitor messages. rcve receive code violation errors. the user has the option to issue a c/i error code (cvr) everytime an illegal code violation has been detected. the implementation is realized according to ansi t1.605. c/w/p this bit has three different meanings depending on the operational mode of the ipac: in lt-s mode the s/t bus configuration is programmed. for point-to-point or extended passive bus configurations an adaptive timing recovery must be chosen. this allows the ipac to adapt to cable length dependent round trip delays. in lt-t mode the user selects the amount of permissible wander before a c/i code warning will be issued by the ipac. the warning may be sent after 25 m s (c/w/p=1) or 50 m s (c/w/p=0). note: the c/i indication slip which will be issued if the specified wander has been exceeded, is only a warning. data has not been lost at this stage. in te mode this bit is not used
psb 2115 psf 2115 functional description semiconductor group 76 11.97 2.4.4.3 mon-8 loop-back register the loop-back register controls all analog (s/t-interface) and digital (iom-2 interface) loop-backs. additionally the wake-up mode can be programmed. value after reset: 02 h . address: 2h ast sb1 sb2 sc ib1 ib2 1 ib12 rd/wr ast asynchronous timing. defines the length of the timing signal (du = 0) on iom-2. if synchronous timing is selected (ast=0) the ipac in lt-s mode will issue the timing request only in the c/i channel of the selected timeslot (c/i = 0000b). this mode is useful for applications where iom-2 clock signals are not switched off. here the ipac can pass the te initiated activation via c/i = 0000b in iom-2 cannel 0 upstream to the u-interface device. in case iom-2 clocks can be turned off during power-down or the lt-s ipac is pin-strapped to a different timeslot than the u-interface device, synchronous timing signals will not succeed in waking the u-interface device. under these circumstances asynchronous timing needs to be programmed (ast=1). here the line du is set to zero for a period long enough to wake any u- interface device, independent of timeslot or clocks. typically asynchronous timing is programmed for intelligent nt applications (ipac pin-strapped to lt-s with nt state machine). note: the asynchronous timing option is restricted to configurations with the ipac operating with nt state machine (i.e., lt-s pin-strap & fsmm bit programmed). sb1 closes the loop-back for b1 channel data close to the activated s/t- interface (i.e., loop-back iom-2 data) in lt-s mode. sb2 closes the loop-back for b2 channel data close to the activated s/t- interface (i.e., loop-back iom-2 data) in lt-s mode. sc close complete analog loop-back (2b+d) close to the s/t-interface. corresponds to c/i = arl. transparency is optional. operational in lt-s mode. ib1 close the loop-back for b1 channel close to the iom-2 interface (i.e. loop- back s/t data). transparent. ib1 and ib2 may be closed simultaneously.
psb 2115 psf 2115 functional description semiconductor group 77 11.97 ib2 close the loop-back for b2 channel close to the iom-2 interface (i.e. loop- back s/t data). transparent. ib1 and ib2 may be closed simultaneously. ib12 exchange b1 and b2 channels. ib1 and/or ib2 need to be programmed also. loops back data received from s/t and interchanges it, i.e. b1 input (s/t) ? b2 output (s/t) and vice versa.
psb 2115 psf 2115 functional description semiconductor group 78 11.97 2.4.4.4 mon-8 iom -2 channel register the features accessible via the iom-2 channel register allow to implement simple switching functions. these make the ipac the ideal device for intelligent nt applications. please refer also to the section iom-2 channel switching. two types of manipulation are possible: the transfer from the pin-strapped iom-2 channel (0 7) into iom-2 channel 0 and a change of the b1, b2 and d data source. value after reset: 00 h address: 3h b1l b1d b2l b2d dl 0 cil cih rd/wr b1l transfers the b1 channel from its pin-strapped location into iom-2 channel 0. b1d direction of the b1 channel. the normal direction (input/output) of du and dd depends on the mode and is shown in table 4 below. by setting b1d the direction for the b1 data channel is inverted. b2l transfers the b2 channel from its pin-strapped location into iom-2 channel 0. b2d direction of the b2 channel. the normal direction (input/output) of du and dd depends on the mode and is shown in table 4 below. by setting b2d the direction for the b2 data channel is inverted. dl transfers the d-channel from its pin-strapped location into iom-2 channel 0. cil c/i channel location: the timeslot position of the c/i channel can be programmed as normal (lt-s and lt-t modes: pin strapped iom-2 channel, te mode: iom-2 channel 0) or fixed to iom-2 channel 0 (regardless the selected mode). cih c/i channel handling: normally the c/i commands are read from the pin- strapped iom-2 channel. with this bit programmed c/i channel access is only possible via the sm/ci register. table 9 du/dd direction mode0 mode1 /eaw transmit data on s receive data on s te-mode 0 eaw du (input) dd (output) lt-t mode 1 1 du (input) dd (output) lt-s mode 1 0 dd (input) du (output)
psb 2115 psf 2115 functional description semiconductor group 79 11.97 2.4.4.5 mon-8 sm/ci register this multifeature register allows access to the c/i channel and controls the monitor time- out. value after reset: x0 h (x contains the c/i code) address: 4h ci3 ci2 ci1 ci0 tod 0 0 0 rd/wr c/i allows the user to access the c/i channel if the cih bit in the iom-2 register has been set previously. if the cih bit was not programmed the content of the ci bits will be ignored and the ipac will access the iom-2 c/i channel. when reading the sm/ci register these bits will always return the current c/i indication (independent of cih bit). tod time out disable. allows the user to disable the monitor time-out function. refer to section monitor timeout for details.
psb 2115 psf 2115 functional description semiconductor group 80 11.97 2.5 layer-1 functions for the s/t interface the common functions in all operating modes are: C line transceiver functions for the s/t interface according to the electrical specifications of ccitt i.430; C conversion of the frame structure between iom and s/t interface; C conversion from/to binary to/from pseudo-ternary code; C level detect. C mode specific functions are: the wiring configurations in user premises, in which the ipac can be used, are illustrated in figure 24 . ? receive timing recovery for point-to-point, passive bus and extended passive bus configuration; ? s/t timing generation using iom timing synchronous to system, or vice versa; ? d-channel access control and priority handling; ? d-channel echo bit generation by handling of the global echo bit; ? activation/deactivation procedures, triggered by primitives received over the iom c/i channel or by info's received from the line; ? execution of test loops.
psb 2115 psf 2115 functional description semiconductor group 81 11.97 figure 24 wiring configurations in user premises ipac te tr tr tr tr lt-t point-to-point configurations sbcx lt-s nt nt lt-s sbcx tr tr short passive bus its09677 te1 te8 1) the maximum line attenuation tolerated by the ipac is 15 db at 96 khz. 1000 m 1) te8 te1 passive bus extended tr tr sbcx lt-s nt tr : terminating resistor ipac ipac ipac _ < 1000 m < _ 1) r iom 100 m _ < 10 m < _ iom r iom r ipac ipac ipac ipac ipac 500 m < _ 10 m _ < 25 m < _
psb 2115 psf 2115 functional description semiconductor group 82 11.97 2.5.1 analog functions for both receive and transmit direction, a 2:1 transformer is used to connect the isac- s transceiver to the 4 wire s/t interface (conf:amp=0). as an option, the receiver can also be operated with a 1:1 transformer (conf:amp=1). the connections are shown in figure 25 . figure 25 connection of the line transformers and power supply to the ipac the external transformers are needed in both receive and transmit direction to provide for isolation and transform voltage levels according to ccitt recommendations. the equivalent circuits of the integrated receiver and transmitter are shown in figure 26 . the full-bauded pseudo-ternary pulse shaping is achieved with the integrated transmitter which is realized as a current limited voltage source.
psb 2115 psf 2115 functional description semiconductor group 83 11.97 figure 26 equivalent internal circuits of receiver and transmitter stages the transmitter of the psb 2115 ipac is identical to that of the well known peb 2086 isac-s, hence, the line interface circuitry should be similar. the external resistors (24 ... 33 w ) are required in order to adjust the output voltage to the pulse mask (nominal 750 mv according ccitt i.430) on the one hand and in order to meet the output impedance of minimum 20 w (transmission of a binary zero according to ccitt i.430) on the other hand. the s-bus receiver of the psb 2115 is designed as a threshold detector with adaptively switched threshold levels. pin sr1 delivers 2.5 v as an output, which is the virtual ground of the input signal on pin sr2. the s-bus receiver of the psb 2115 is symmetrical, which allows for a simple external circuitry and pcb layout to meet the i.430 receiver input impedance specification. its09631 sx1 sx2 2.1 2.1 13.4 i ma v v sr1 k 40 + - w sr2 w 50 k w 40 k 50 k w 2.5 v ipac ipac < _ (conf : amp = o) its09678 sr1 k 20 + - w sr2 w 50 k w 20 k 50 k w 2.5 v ipac (conf : amp = 1)
psb 2115 psf 2115 functional description semiconductor group 84 11.97 2.5.2 s/t interface circuitry 2.5.2.1 s/t interface pre-filter compensation to compensate for the extra delay introduced into the receive and transmit path by the external circuit, the delay of the transmit data can be reduced by 260 ns (i.e. two oscillator cycles). therefore pds of the conf register must be programmed to 1. this delay compensation might be necessary in order to comply with the "total phase deviation input to output" requirement of ccitt recommendation i.430 which specifies a phase deviation in the range of C 7% to + 15% of a bit period. 2.5.2.2 external protection circuitry the ccitt specification for both transmitter and receiver impedances in tes results in a conflict with respect to external s-protection circuitry requirements: C to avoid destruction or malfunctioning of the s-device it is desirable to drain off even small overvoltages reliably. C to meet the 96 khz impedance test specified for transmitters and receivers (for tes only, ccitt sections 8.5.1.2a and 8.6.1.1) the protection circuit must be dimensioned such that voltages below 2.4 v are not affected (1.2 v ccitt amplitude multiplied by transformer ratio 1:2). this requirement results from the fact that this test is to be performed with no supply voltage being connected to the te. therefore the second reference point for overvoltages v dd , is tied to gnd. then, if the amplitude of the 96 khz test signal is greater than the combined forward voltages of the diodes, a current exceeding the specified one may pass the protection circuit.
psb 2115 psf 2115 functional description semiconductor group 85 11.97 the following recommendations aim at achieving the highest possible device protection against overvoltages while still fulfilling the 96 khz impedance tests. if the device is not used in te or lt-t applications, the four diodes could be bridged and the 5.4 v zener diode could be omitted. protection circuit for transmitter figure 27 external circuitry for transmitters figure 27 illustrates the secondary protection circuit recommended for the transmitter. an ideal protection circuit should limit the voltage at the sx pins from C 0.4 v to v dd +0.4v. via the two resistors (typ. 20 ... 40 w ) the transmitted pulse amplitude is adjusted to comply with the requirements. two mutually reversed diode paths (low capacitive diodes are recommended, e.g. 1n4151) protect the device against positive or negative overvoltages on both lines. the pin voltage range is increased from C 0.7 v to v dd + 3.5 v. the resulting forward voltage will prevent the protection circuit to become active if the 96 khz test signal is applied while no supply voltage is present. in te / lt-t modes the 5.6 v zener diode is provided to be completely on the safe side, however, system tests may reveal that it can be omitted. its09632 dd v 20-40 w w 20-40 sx1 sx2 s bus gnd 5.6 v 2 : 1 te and lt-t modes: lt-s mode: its10289 dd v 20-40 w w 20-40 sx1 sx2 s bus gnd 2 : 1
psb 2115 psf 2115 functional description semiconductor group 86 11.97 protection circuit for receivers figure 28 illustrates the external circuitry used in combination with a symmetrical receiver. protection of symmetrical receivers is rather comfortable. figure 28 external circuitry for symmetrical receivers between each receive line and the transformer a 10 k w resistor is used. this value is split into two resistors: one between transformer and protection diodes for current limiting during the 96 khz test, and the second one between input pin and protection diodes to limit the maximum input current ot the chip. with symmetrical receivers no difficulties regarding lcl measurements are observed; compensation networks thus are obsolete. in order to comply to the physical requirements of ccitt recommendation i.430 and considering the national requirements concerning overvoltage protection and electromagnetic compability (emc), the ipac needs additional circuitry. note: capacitors are optional for noise reduction (up to 47 pf)
psb 2115 psf 2115 functional description semiconductor group 87 11.97 2.5.3 receiver functions 2.5.3.1 receiver characteristics in order to additionally reduce the bit error rate in severe conditions, the ipac performs oversampling of the received signal and uses majority decision logic. the receiver consists of a differential to single ended input stage, a peak detector and a set of comparators. additional noise immunity is achieved by digital oversampling after the comparators. the following figure 29 describes the functional blocks of the receiver (for receiver tansformer ratio 2:1). the equivalent internal circuit for transformer ratio 1:1 (conf:amp=1) is shown in figure 26 . figure 29 receiver circuit the input stage works together with external 10 k w resistors to match the input voltage to the internal thresholds. the data detection thresholds are chosen to 35 % of the peak voltage to increase the performance in extended passive bus configurations. however they never go below 85 mv with respect to the line signal level. this guarantees a maximum line attenuation of at least 13 db in point-to-point configurations with a margin of more than 70 mvpp with respect to the specified 100 mvpp noise. conf:amp=0
psb 2115 psf 2115 functional description semiconductor group 88 11.97 figure 30 receiver thresholds the peak detector requires maximum 2 m s to reach the peak value while storing the peak level for at least 250 m s (rc > 1 ms). the additional level detector for power up/down control works with fixed thresholds at 100 mv. the level detector monitors the line input signals to detect whether an info is present. in te and lt-t mode, when closing an analog loop, it is therefore possible to indicate an incoming signal during activated loop. in lt-s analog loop-back mode the level detector monitors its own loop signal and an incoming signal is not recognized. 2.5.3.2 level detection power down (te mode) if conf:cfs is set to 0, the clocks are also provided in power down state, whereas if cfs is set to 1, only an analog level detector is active in power down state. all clocks, including the iom interface, are stopped. the data lines are "high", whereas the clocks are "low". an activation initiated from the exchange side (info 2 on s-bus detected) will have the consequence that a clock signal is provided automatically. from the terminal side an activation must be started by setting and resetting the spu- bit in the spcr register and writing tim to cix0 or by resetting cfs=0.
psb 2115 psf 2115 functional description semiconductor group 89 11.97 2.5.4 s/t transmitter disable the transmitter of the s/t interface can be disabled by configuration (see figure 31 ). by default (scfg:txd=0) both the s/t receiver and transmitter are active, but in order to reduce power consumption, the transmitter can be disabled (scfg:txd=1) separately. in power down mode the power consumption is reduced to a minimum and the ipac recognizes the activation of the s/t interface (incoming call). with several terminals connected to the s/t interface, another terminal may keep the interface activated although the ipac does not establish a connection. in this case the ipac receiver will monitor for incoming calls while the transmitter is disabled, thus reducing power consumption. figure 31 disabling of s/t transmitter
psb 2115 psf 2115 functional description semiconductor group 90 11.97 2.5.5 timing recovery lt-s in lt-s mode, the 192-khz transmit bit clock is synchronized to the iom clock. in the receive direction two cases have to be distinguished depending on whether a bus or a point-to-point operation is programmed in mon-8 configuration register ( see figure 32 ): C in a bus configuration (c/w/p=0), the 192-khz receive bit clock is identical to the transmit bit clock, shifted by 4.6 m s with respect to the transmit edge. according to ccitt i.430, the receive frame is shifted by two bits with respect to the transmit frame. C in a point-to-point or extended passive bus configuration (c/w/p=1), the 192-khz receive bit clock is recovered from the receive data stream on the s interface. according to ccitt i.430, the receive frame can be shifted by 2-8 bits with respect to the transmit frame at the lt-s. however, note that other shifts are also allowed by the ipac (including 0). figure 32 clock system of the ipac in lt-s mode its09633 dcl fsc mp pp pll pll mp: pp: receive clock for bus configuration receive clock for point-to-point configuration lt-s mode
psb 2115 psf 2115 functional description semiconductor group 91 11.97 te and lt-t in te/lt-t applications, the transmit and receive bit clocks are derived, with the help of the dpll, from the s interface receive data stream. the received signal is sampled several times inside the derived receive clock period, and a majority logic is used to additionally reduce bit error rate in severe conditions ( see chapter 2.5.3 ). the transmit frame is shifted by two bits with respect to the received frame. in te mode the output clocks (dcl, fsc etc.) are synchronous to the s interface timing. in lt-t mode the ipac provides a 1.536 mhz clock on the sclk pin synchronous to the s interface. this can be used as the reference clock for an external pll which provides the fsc and dcl clocks. since the ipac provides different dividers, the clocks can also be generated internally from the dcl input connected to sclk (see chapter 2.8.2.2 ). figure 33 clock system of the ipac in te and lt-t modes its09634 dcl fsc sclk pll lt-t mode slip detector (pll) "nt2" clock generator reference clock dcl fsc bcl pll te mode
psb 2115 psf 2115 functional description semiconductor group 92 11.97 2.5.6 activation/deactivation an incorporated finite state machine controls isdn layer-1 activation/deactivation according to ccitt. setting of the ipac for cts test procedures for frame alignment the ipac needs to be programmed for multiframe operation with the q-bits set to "1". mon-8 configuration register : mfd = 0 mon-1 command/message = 0001 1111b (1fh) frame alignment tests for frame alignment tests the following settings are valid: ?n = 2 ? m = 3 or 4
psb 2115 psf 2115 functional description semiconductor group 93 11.97 2.5.7 activation indication via pin acl the activated state of the s-interface is directly indicated via pin acl (activation led). an led with pre-resistance may directly be connected to this pin and a low level is driven on acl as soon as the layer 1 is activated (see figure 34 ). figure 34 acl indication of activated layer 1 by default (pcfg:acl=0) the state of layer 1 is indicated at pin acl . if the automatic indication of the activated layer 1 is not required, the state on pin acl can also be programmed by the host (see figure 35 ). if pcfg:acl=1 the led on pin acl can be switched on (pcfg:led=1) and off (pcfg:led=0) by the host. figure 35 acl configuration
psb 2115 psf 2115 functional description semiconductor group 94 11.97 2.5.8 terminal specific functions (te mode only) in addition to the standard functions supporting the isdn basic access, the ipac contains optional functions, useful in various terminal configurations. the terminal specific functions are enabled by setting bit tsf (stcr register) to 1. this has two effects: ? in te mode the mode1/eaw line is defined as external awake input, but additionally this function is only enabled by setting stcr:tsf=1 ? second, the interrupts saw and wov (exird register) are enabled: C saw (subscriber awake) generated by a falling edge on the eaw line C wov (watchdog timer overflow) generated by the watchdog timer. this occurs when the processor fails to write two consecutive bit patterns in adf1: watchdog timer control 1,0. the wtc1 and wtc2 bits have to be successively written in the following manner within 128 ms: as a result the watchdog timer is reset and restarted. otherwise a wov is generated. deactivating the terminal specific functions is only possible with a hardware reset. having enabled the terminal specific functions via tsf = 1, the user can make the ipac generate a reset signal by programming the reset source select rss bit (cix0 register), as follows: 0 ? a reset signal is generated as a result of C a falling edge on the eaw line (subscriber awake) C a c/i code change (exchange awake). C layer-1 part leaves power down state and supplies dcl and fsc clocks. a falling edge on the eaw line also forces the du line of the iom interface to zero. note: in case the layer-1 part of the ipac is switched off (conf:tem=1), a falling edge on eaw should normally induce the attached layer-1 device to leave the power down state and supply clocking to ipac via dcl and fsc. a corresponding interrupt status (cic or saw) is also generated. adf1 wtc1 wtc2 wtc1 wtc2 1. 2. 1 0 0 1
psb 2115 psf 2115 functional description semiconductor group 95 11.97 1 ? a reset signal is generated as a result of the expiration of the watchdog timer (indicated by the wov interrupt status). note: the watchdog timer is not running when the ipac is in the power-down state (iom not clocked). note: bit rss has a significance only if terminal specific functions are activated (tsf=1). the rss bit should be set to 1 by the user when the ipac is in power-up to prevent an edge on the eaw line or a change in the c/i code from generating a reset pulse. switching rss from 0 to 1 or from 1 to 0 resets the watchdog timer. the reset pulse generated by the ipac (output via res pin) has a pulse width of 5 ms and is an active high signal. it has no internal reset function. before and after this reset pulse the res pin is input.
psb 2115 psf 2115 functional description semiconductor group 96 11.97 2.5.9 test functions 2.5.9.1 b-channel test mode to provide for fast and efficient testing, the ipac can be operated in the test mode by setting the tlp bit in the modeb register. the serial data input and output (du C dd) are connected generating a local loopback between xfifob and rfifob. the dd input is ignored and du remains active. as a result, the user can perform a simple test of the hdlc channels of the ipac. 2.5.9.2 d-channel and s/t interface test mode the ipac provides several test and diagnostic functions for d-channel and s/t interface which can be grouped as follows: C digital loop via tlp (test loop, spcr register) command bit ( figure 36 ): tx-path of layer 2 is internally connected with rx-path of layer 2, output from layer 1 (s/t) on dd is ignored; this is used for testing d-channel functionality excluding layer 1 (loopback between xfifod and rfifod) and excluding the b-channel controller; figure 36 layer 2 test loops C test of layer-2 functions while disabling all layer-1 functions and pins associated with them (including clocking in te mode), via bit tem (test mode in conf register); the ipac is then fully compatible to the icc (peb 2070) seen at the iom interface.
psb 2115 psf 2115 functional description semiconductor group 97 11.97 C loop at the analog end of the s interface; C special loops are programmed via c2c1-0 and c1c1-0 bits (register spcr) C transmission of special test signals on the s/t interface according to the modified ami code are initiated via a c/i command written in cix0 register ( cf. chapter 3.6 ). te / lt-t mode test loop 3 is activated with the c/i channel command activate request loop (arl). an s interface is not required since info3 is looped back internally to the receiver. when the receiver has synchronized itself to this signal, the message "test indication" (or "awake test indication") is delivered in the c/i channel. no signal is transmitted over the s interface. in the test loop mode the s interface awake detector is enabled, i.e. if a level is detected (e.g. info 2/info 4) this will be reported by the awake test indication (ati). the loop function is not effected by this condition and the internally generated 192- khz line clock does not depend on the signal received at the s interface. lt-s mode test loop 2 is likewise activated over the iom interface with activate request loop (arl). no s line is required. info4 is looped back internally to the receiver and also sent to the s interface. when the receiver is synchronized, the message "aiu" is sent in the c/i channel. in the test loop mode the s interface awake detector is disabled, and echo bits are set to logical "0". two kinds of test signals may be sent by the ipac: ? single pulses and ? continuous pulses. the single pulses are of alternating polarity, one s interface bit period wide, 0.25 ms apart, with a repetition frequency of 2 khz. single pulses can be sent in all applications. the corresponding c/i command in te, lt-s and lt-t applications is ssz (send single zeros). continuous pulses are likewise of alternating polarity, one s-interface bit period wide, but they are sent continuously. the repetition frequency is 96 khz. continuous pulses may be transmitted in all applications. this test mode is entered in lt-s, lt-t and te applications with the c/i command scz.
psb 2115 psf 2115 functional description semiconductor group 98 11.97 2.6 microprocessor interface 2.6.1 operation modes the ipac is programmed via an 8-bit parallel microprocessor interface. easy and fast microprocessor access is provided by 8-bit address decoding on the chip. the ipac provides three types of m p buses (see table 10 ), which are selected via pin ale: the occurrence of an edge on ale, either positive or negative, at any time during the operation immediately selects the interface type (3). a return to one of the other interface types is possible only if a hardware reset is issued. note: if the multiplexed address/data bus type (3) is selected, the unused address pins a0-a7 must be tied to v dd . register addressing modes the common way to read write registers is for non-multiplexed mode to set the register address to the address bus and then access the register location. in multiplexed mode, the address on the address/data bus is latched in, before a read or write access to the register is performed. the ipac provides two different ways to access its register contents. in the direct mode the register address to be read or written is directly set on the bus in the way described above. this mode is selected, if the address select mode pin amode is set to 0. table 10 bus operation modes (1) ale tied to v dd motorola type with control signals cs , r/w , ds (2) ale tied to v ss siemens/intel non-multiplexed bus type with control signals cs , wr , rd (3) edge on ale siemens/intel multiplexed address/data bus type with control signals cs , wr , rd , ale
psb 2115 psf 2115 functional description semiconductor group 99 11.97 as a second option, the ipac allows for indirect access of the registers (amode=1). only the lsb of the address line is used to select either the address register or the data register. the host writes the register address to the address register (write only register), before it reads/writes data from/to the corresponding register location through the data register. figure 37 shows both register addressing modes. in indirect address mode (amod=1) all other address lines except a0 are not evaluated by the ipac. they may be tied to log. 0 or 1, however they must not be left open. figure 37 indirect register address mode 2.6.2 register set the communication between the host and the ipac is done via a set of directly or indirectly accessible 8-bit registers. the host sets the operating modes, controls function sequences and gets status information by writing or reading these registers (command/ status transfer). each of the two b-channels of the ipac is controlled via an equal, but totally independent register file (channel a and channel b). additional registers are available for d-channel control, the pcm and the auxiliary interface.
psb 2115 psf 2115 functional description semiconductor group 100 11.97 2.6.3 data transfer mode data transfer between the system memory and the ipac for both transmit and receive direction is controlled either by interrupts (interrupt mode), or independently from host interaction using the ipacs 4-channel dma interface (dma mode). dma transfer is available for transfer of b-channel data only and not for d-channel data. after reset, the ipac operates in interrupt mode, where data transfer must be done by the host. the user selects the dma mode by setting the dma bit in a register. in te mode both channels can independently be operated in either interrupt or dma mode (e.g. channel a in dma mode, channel b in interrupt mode). in lt-s and lt-t mode, only channel b can be operated either in interrupt or dma mode, channel a can only be operated in interrupt mode. 2.6.4 interrupt interface special events in the ipac are indicated by means of a single interrupt output, which requests the host to read status information from the ipac or transfer data from/to the ipac. two interrupt lines with invers polarity are available to meet the requirements of different kinds of applications. a low active interrupt output int (pin 2) can be connected to a pull up resistor together with further interrupt sources on the system. this pin is available in all modes. the inverted interrupt signal is available in te mode only if pin aux2 (pin 33) is programmed as output (see chapter 2.8.1 ). this may be used in single chip solutions (e.g. pc cards) with only one interrupt source that can directly be connected to the isa bus. this high active interrupt line int is not available in lt-modes and in te-mode with aux2 used as input (default after reset). figure 38 high and low active interrupt output since only one interrupt request output is provided, the cause of an interrupt must be determined by the host reading the ipacs interrupt status registers. the structure of the interrupt status registers is shown in figure 39 . 2 ipac te-mode 33 interrupt int int 2 ipac lt-modes 2115_ 3 interrupt int
psb 2115 psf 2115 functional description semiconductor group 101 11.97 figure 39 ipac interrupt status registers two interrupt indications can be read directly from the ista register and another six interrupt indications from separate interrupt status registers and extended interrupt registers for the b-channels (istab, exirb, each for b-channel a and b) and the d- channel (istad, exird). each interrupt source can individually be disabled by setting the corresponding mask bit in the interrupt mask register. an overview of the interrupt sources is given below, a detailed description of the interrupt structure is provided in chapter 3.3 .
psb 2115 psf 2115 functional description semiconductor group 102 11.97 table 11 auxiliary interface interrupts bit register interrupt int0/1 ista external interrupt 0/1 table 12 d-channel interrupts bit register interrupt icd ista ista d-channel exd ista exir d-channel receive interrupts: bit register interrupt rpf istad receive pool full rme istad receive message end rfo exird receive frame overflow transmit interrupts: bit register interrupt xpr istad transmit pool ready xmr exird transmit message repeat xdu exird transmit data underrun rsc istad receive status change special condition interrupts: bit register interrupt tin istad timer interrupt cic istad c/i-channel change sin istad synchronous transfer interrupt tin2 istad timer 2 interrupt sov exird synchronous transfer overflow
psb 2115 psf 2115 functional description semiconductor group 103 11.97 mos exird monitor status saw exird subscriber awake wov exird watchdog timer overflow table 13 b-channel interrupts bit register interrupt ica/ icb ista ista b-channel a/b exa/ exb ista exir b-channel a/b receive interrupts: bit register interrupt rpf istab receive pool full rme istab receive message end rfo exirb receive frame overflow rfs exirb receive frame start transmit interrupts: bit register interrupt xpr istab transmit pool ready xmr exirb transmit message repeat xdu exirb transmit data underrun table 12 d-channel interrupts
psb 2115 psf 2115 functional description semiconductor group 104 11.97 2.6.5 dma interface to support efficient data exchange between system memory and the fifos an additional dma-interface is provided. the fifos have separate dma-request lines for each direction (drqra/b for receive fifo, drqta/b for transmit fifo) and a common dma-acknowledge input for receive and transmit direction (dacka /b ). the dma-controller has to operate in the level triggered, demand transfer mode. if the dma- controller provides a dma-acknowledge signal, each bus cycle implicitly selects the top of fifo and neither address nor chip select is evaluated. if no dacka /b signal is supplied, normal read/write operations (providing addresses) must be performed (memory to memory transfer). in the paragraphs below the following abbreviations are used: drqr = drqra or drqrb drqt = drqta or drqtb dack = dacka or dackb the ipac activates the drqt and drqr-lines as long as data transfers are needed from/to the specific fifos. a special timing scheme is implemented to guarantee safe dma-transfers regardless of dma-controller speed. if in transmit direction a dma-transfer of n bytes is necessary (n < 64 or the remainder of a long message), the drqt-pin is active up to the rising edge of wr of dma-transfer (n-1). if n > 64 the same behavior applies additionally to transfers 63, 127, , ((k 64) - 1). drqt is activated again with the next rising edge of dack , if there are further bytes to transfer ( figure 41 ). when a fast dma-controller is used (> 16 mhz), byte n (or bytes k 64) will be transferred before drqt is deactivated from the ipac. in this case pin drqt is not activated any more up to the next block transfer ( figure 40 ). figure 40 timing diagram for dma-transfers (fast) transmit (n < 64, remainder of a long message or n = k 64)
psb 2115 psf 2115 functional description semiconductor group 105 11.97 figure 41 timing diagram for dma-transfers (slow) transmit (n < 64, remain- der of a long message or n = k 64) in receive direction the behavior of pin drqr is implemented correspondingly. if k 64 bytes are transferred, pin drqr is deactivated with the rising edge of rd of dma- transfer ((k 64) - 1) and it is activated again with the next rising edge of dack , if there are further bytes to transfer ( figure 43 ). when a fast dma-controller is used (> 16 mhz), byte n (or bytes k 64) will be transferred immediately ( figure 42 ). however, if 4, 8, 16, 32 or 64 bytes have to be transferred (only these discrete values are possible in receive direction), drqr is deactivated with the falling edge of rd ( figure 44 ). figure 42 timing diagram for dma-transfer (fast) receive (n = k 64)
psb 2115 psf 2115 functional description semiconductor group 106 11.97 figure 43 timing diagram for dma-transfers (slow) receive (n = k 64) figure 44 timing diagram for dma-transfers (slow or fast) receive (n = 4, 8, 16 or 32) generally it is the responsibility of the dma-controller to perform the correct bus cycles as long as a request line is active. figure 45 dma-transfers with pulsed dack (read or write)
psb 2115 psf 2115 functional description semiconductor group 107 11.97 if a pulsed dack -signal is used the drqr/drqt-signal will be deactivated with the rising edge of rd/wr-operation (n-1) but activated again with the following rising edge of dack. with the next falling edge of dack (dack n) it will be deactivated again (see figure 45 ). this behaviour might cause a short negative pulse on the drqr/drqt-line depending on the timing of dack vs. rd /wr .
psb 2115 psf 2115 functional description semiconductor group 108 11.97 2.6.6 fifo structure for b-channels in both transmit and receive direction 128 byte deep fifos are provided for the intermediate storage of b-channel data between the serial interface and the cpu interface. the fifos are divided into two halves of 64 bytes, where only one half is accessible to the cpu at any time. the organization of the receive fifo (rfifob) is such, that in the case of a frame at most 128 bytes long, the whole frame may be stored in the rfifob. after the first 64 bytes have been received, the ipac prompts to read the 64 byte block by means of interrupt or dma request (rpf interrupt or activation of drqr line). this block remains in the rfifob until a confirmation is given to the ipac acknowledging the transfer of the data block. this confirmation is either a rmc (receive message complete) command via the cmdrb register in interrupt mode or is implicitely achieved in dma mode after 64 byte have been read from the rfifob. as a result, its possible to read out the data block any number of times until the rmc command is issued. the configuration of the rfifo prior to and after acknowledgment is shown in figure 46 . figure 46 configuration of rfifob (long frames) 2115_1
psb 2115 psf 2115 functional description semiconductor group 109 11.97 if frames longer than 128 bytes are received, the device will repeatedly prompt to read out 64 byte data blocks via interrupt. in the case of several shorter frames, up to 17 may be stored in the ipac. if the accessible half of the rfifob contains a frame i (or the last part of frame i), up to 16 short frames may be stored in the other half (i + 1, , i + n) meanwhile, prior to frame i being fetched from the rfifob. this is illustrated in figure 47 . for a description of a transmit and receive sequence please refer to chapter 3.4 . figure 47 configuration of rfifob (short frames) note: the number of 17 frames applies e.g. for the ipac operating in the non-auto mode (address recognition), and short frames only containing the hdlc address and control field are received. since the address is not stored, the control field is always stored first in the rfifob, and an additional status byte is always appended at the end of each frame in the rfifob, these frames will occupy two bytes. 2115_1
psb 2115 psf 2115 functional description semiconductor group 110 11.97 2.6.7 timer modes the ipac provides two timers which can be used for various purposes: timr1 - timer 1 register (adr. a3 h ) timr2 - timer 2 register (adr. cc h ) timer 1 provides two modes of operation which can be selected by the timer mode bit in moded register ( figure 48 ): figure 48 timer 1 register 1. internal timer mode (moded:tmd=1) in the internal mode the timer is used internally by the ipac d-channel controller for timeout and retry conditions for handling of lapd/hdlc protocol, i.e. this mode is only used in automode. the number of s commands n1 which are transmitted autonomously by the ipac after expiration of time period t1 (see note) is indicated in parameter cnt. the internal prodedure is started after begin of an i-frame transmission or after
psb 2115 psf 2115 functional description semiconductor group 111 11.97 an rnr s-frame has been received. a timer interrupt (istad:tin) is generated after the last retry. the procedure is stopped when either a tin interrupt is generated or the timr1 register is written or when a positive or negative acknowledgement is received. cnt can have any value up to 6, with cnt=7 the number of retries is unlimited. a detailed description for the use of the internal timer mode is provided with the automode description (see chapter 2.2.1.3 ). note: the time period t1 is determined by the parameter value ( chapter 4.3.8 ). 2. external timer mode (moded:tmd=0) in the external mode the host controls the timer by setting bit cmdrd:sti to start the timer and by writting register timr1 to stop the timer. after time period t2 an interrupt (istad:tin) is generated continuously (if cnt=7) or once (if cnt<7). two time periods t2 are defined for normal mode (spcr:tlp=0) and for test mode (spcr:tlp=1), i.e when test loop is activated. timer 2 can be used as a general purpose timer, similar to the external timer mode of timer 1. the host can configure a timer interrupt to the host which is indicated in istad:tin2. if timr2:tmd=0 the timer is operating in count down mode, i.e. an interrupt is only generated once after the programmed timer length. a periodic interrupt is generated if timr2:tmd=1. the timer length (for count down timer) or the timer period (for periodic timer), respectively, can be configured to a value between 1 - 63 ms (timr2:cnt). if cnt=0 the timer function is disabled (see figure 49 ). figure 49 timer 2 register
psb 2115 psf 2115 functional description semiconductor group 112 11.97 2.6.8 software reset the host can issue a reset command to the ipac which has the same functionality as a hardware reset. in register c9h bit pota2:sres (s oftware res et) is used to release the reset which has only effect on the internal functional blocks of the ipac. the reset pin res (pin 34) is not activated. the duration of the reset is controlled by the host, i.e. sres is set to 1 by the host and the reset state is active until sres is set to 0. the host must ensure the required reset timing of the ipac which is 4 ms. figure 50 reset timing activate reset deactivate reset min. 4 ms sres=0 sres=1 host ipac 2115_31
psb 2115 psf 2115 functional description semiconductor group 113 11.97 2.7 iom ? -2 interface 2.7.1 iom ? -2 frame structure / timing modes the iom-2 is a generalization and enhancement of the iom-1. while the basic frame structure is very similar, iom-2 offers further capacity for the transfer of maintenance information. in terminal applications, the iom-2 constitutes a powerful backplane bus offering intercommunication and sophisticated control capabilities for peripheral modules. the channel structure of the iom-2 is depicted in figure 51 . figure 51 channel structure of iom ? -2 ? the 64-kbit/s channels, b1 and b2, are conveyed in the first two octets. ? the third octet (monitor channel) is used for transferring maintenance information between the layer-1 functional blocks (e.g. iec-q te) and the layer-2 controller ( see chapter 2.7.4 ). ? the fourth octet (control channel) contains C two bits for the 16-kbit/s d channel C four command/indication bits for controlling activation/deactivation and for additional control functions C two bits mr and mx for supporting the handling of the monitor channel. the iom-2 frame structure depends on whether te- or non-te mode is selected, via pins mode0 and mode1: note: in te mode pin mode1 is not required for mode selection but used as eaw . mode0 mode1/eaw te mode 0 eaw lt-t mode 1 1 lt-s mode 1 0
psb 2115 psf 2115 functional description semiconductor group 114 11.97 non-te timing mode this mode is used in lt-s and lt-t applications. the frame is a multiplex of eight iom- 2 channels ( figure 52 ), each channel has the structure as shown in figure 51 . the ipac is assigned to one of the eight channels (0 to 7) via pin strapping (ch0-2), however the host can reprogram the selected timeslot in adf1:csel0-2. thus the data rate per subscriber connection (corresponding to one channel) is 256 kbit/s, whereas the bit rate is 2048 kbit/s. the iom-2 interface signals are: du, dd 2048 kbit/s dcl 4096 khz input fsc 8 khz input figure 52 multiplexed frame structure of the iom ? -2 interface in non-te timing mode itd09635 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch0 ch0 ch7 ch6 ch5 ch4 ch3 ch2 ch1 b1 b2 monitor d c/i mm rx 125 fsc dcl dd du s iom ch0 iom ch0 r r
psb 2115 psf 2115 functional description semiconductor group 115 11.97 te timing mode the frame is composed of three channels ( figure 53 ): ? channel 0 contains 144 kbit/s (for 2b+d) plus monitor and command/indication channels for the layer-1 device. ? channel 1 contains two 64-kbit/s intercommunication channels plus monitor and command/indication channels for other iom-2 devices. ? channel 2 is used for iom bus arbitration (access to the tic bus). only the command/ indication bits are used in channel 2. see section 2.7.6 for details. figure 53 definition of iom ? -2 channels in terminal timing mode the iom-2 signals are: du, dd 768 kbit/s (du = data upstream = input, dd = data downstream = output) dcl 1536 khz output fsc 8 khz output in addition, to support standard combos/data devices the following signals are generated as outputs: bcl 768 khz bit clock sds 8 khz programmable data strobe signal for selecting an 8-bit timeslot (e.g. channel b1) or 16-bit timeslot (e.g. b1 and b2). itd09636 tad dd b1 b2 mon0 ci0 ic1 ic2 mon1 ci1 d mr mx mx mr s/g fsc bac mr mx mx mr d ci1 mon1 ic2 ic1 ci0 mon0 b2 b1 du sds ch0 a/b 125 s iom -2 iom ch1 -2 iom ch2 -2 r r r
psb 2115 psf 2115 functional description semiconductor group 116 11.97 strobe signal a data strobe signal is generated with every 8-khz frame. it is active high for a duration of either 8 or 16 bits (scfg:tlen) and its start position is programmable to one of up to 32 channels (scfg:tslt) with respect to the fsc signal. since the iom-2 and pcm interface are synchronous in their channel structure, the sds signal may be used for external devices connected to either of these interfaces. figure 54 data strobe signal generation figure 54 shows two examples for the generation of a strobe signal. in example 1 the sds is active during channel b2 on iom-2 and during channel 1 (c1) on pcm, whereas in the second example sds goes high during ic1 and ic2 on iom-2 and during channel 4 and 5 (c4, c5) on pcm.
psb 2115 psf 2115 functional description semiconductor group 117 11.97 2.7.2 iom ? -2 interface connections output driver selection fsc and dcl are push pull outputs (te mode). the output type of the iom datalines is selectable via bit conf:ods. ods set to 0 selects open drain (reset value) and ods set to 1 selects push pull outputs. normally the iom-2 interface is operated in the "open drain" mode (ods=0) in order to take advantage of the bus capability. in this case pull-up resistors (1 k w C5k w ) are required on du and dd. in push pull mode (ods=1) du and dd are also high impedant outside the active timeslot the ipac is programmed to. iom-2 off function the iom-2 interface can be switched off for external devices via bit iof in the conf register. the output lines can be set to tristate if bit conf:iof is set to 1, so du/dd, fsc, dcl and sds are high impedant, else the selection in ods determines the output driver characteristic (push pull or open drain). in non-te mode the clocks fsc and dcl are not switched off from the iom-2 interface for iof=1 but remain as input, however the datalines du and dd are tristate. iom-2 direction control the direction of the iom-2 data lines depends on the mode selected by pins mode0 and mode1/eaw for the layer 1 block and by the configuration of ccr2:soc for the b- channel hdlc controller and spcr:sdl for the d-channel controller (see figure 55 ). according to the mode selection (see chapter 2.7.1 ) the layer 1 controller always carries data from the subscriber to the central office on du and data in the opposite direction on dd. for test applications, the direction of du and dd can be reversed separately for the b- channel controller and for the layer 2 block. for normal operation both bits ccr2:soc and spcr:sdl should be set to 0 in te and lt-t mode and should be set to 1 in lt-s mode.
psb 2115 psf 2115 functional description semiconductor group 118 11.97 figure 55 iom-2 direction control
psb 2115 psf 2115 functional description semiconductor group 119 11.97 terminal mode in te mode the iom-2 interface has the 12-byte frame structure consisting of channels 0, 1 and 2 ( see figure 53 ): C dd carries the 2b+d channels from the s/t interface, and the monitor 0 and c/i 0 channels coming from the s/t controller; C du carries the 2b+d channels towards the s/t interface, and the monitor 0 and c/i 0 channels to the layer-1. channel 1 of the iom-2 interface is used for internal communication in terminal applications. the ipac is operated as a master device and communicates with slave devices via monitor 1 and c/i 1 channels: C dd carries the monitor 1 and c/i 1 channels as output to peripheral devices (e.g. voice/data module); C dd carries the ic channels as output to other devices, if programmed (c c1C0=01 in register spcr). bit 5 of the last byte in channel 2 on dd is used to indicate the s bus state (stop/go bit). if required (cf. dim2-0, moded register), the s/g bit is evaluated for d-channel access handling and bits 2 to 5 of the last byte on du (bac and tad) are used for tic bus access arbitration ( see chapter 2.7.6 ). figure 56 shows the connection in a multifunctional terminal with the ipac as a master and an external device (e.g. icc peb 2070) as a slave device.
psb 2115 psf 2115 functional description semiconductor group 120 11.97 figure 56 iom-2 data ports du/dd in terminal mode (mode0=0)
psb 2115 psf 2115 functional description semiconductor group 121 11.97 non-terminal mode / lt-t mode outside the selected 4-byte subscriber channel, both du and dd are inactive. the reset value for the active channel can be selected by pin strapping (in lt-s and lt-t modes by ch0-2), however after reset the host can reconfigure the active iom-2 channel for layer 2 in adf1:csel0-2. this reconfiguration is not valid for layer 1 and b- channel hdlc. the flow of data is similar as in te mode except that there is only one active 4-byte channel in lt modes compared to three channels in te mode (see figure 57 ). figure 57 iom-2 data ports du/dd in lt-t mode (mode0=1, mode1=1)
psb 2115 psf 2115 functional description semiconductor group 122 11.97 non-terminal mode / lt-s mode similar as in lt-t mode, both du and dd are inactive outside the selected 4-byte subscriber channel. also the reset value for the active channel can be selected by pin strapping (in lt-s and lt-t modes by ch0-2), however after reset the host can reconfigure the active iom-2 channel for layer 2 in adf1:csel0-2. this reconfiguration is not valid for layer 1 and b- channel hdlc. inside the programmed 4-byte subscriber channel ( see figure 58 ): C du carries the 2b+d channels coming from s/t interface, and the monitor and c/i channels from the layer-1 C dd carries the 2b+d channels towards the s/t interface, and the monitor and c/i channels to the layer-1. by configuration of bit sdl (switch data line, spcr register) the data lines of the layer 2 controller of the ipac can be switched. if sdl is set to 0, the layer 2 controller sends the monitor, d and c/i-channels on du, normally carried by dd, i.e. normally destined to layer 1 s/t interface. this feature can be used for test purposes, e.g. to send the d- channel towards the system instead of the subscriber (see figure 59 ).
psb 2115 psf 2115 functional description semiconductor group 123 11.97 figure 58 iom-2 data ports du/dd in lt-s mode (mode0=1, mode1=0) with normal layer 2 direction (spcr:sdl=1)
psb 2115 psf 2115 functional description semiconductor group 124 11.97 figure 59 iom-2 data ports du/dd in lt-s mode (mode0=1, mode1=0) with inversed layer 2 direction (spcr:sdl=0)
psb 2115 psf 2115 functional description semiconductor group 125 11.97 2.7.3 microprocessor access to b and ic channels in iom-2 terminal mode (te mode, mode0=0) the microprocessor can access the b and ic (intercommunication) channels at the iom-2 interface by reading the b1cr/b2cr or by reading and writing the c1r/c2r registers. furthermore it is possible to loop back the b-channels from/to the s/t interface or to loop back the ic channels from/to the iom-2 interface without m p intervention. these access and switching functions are selected with the channel connect bits (cxc1, cxc0) in the spcr register ( table 14, figure 60 ). external b-channel sources (voice/data modules) connected to the iom-2 interface can be disconnected with the iom off function (conf:iof) in order to not disturb the b- channel access ( see figure 60 ). if the b-channel access is used for transferring 64 kbit/s voice/data information directly from the m p port to the isdn s/t interface, the access can be synchronized to the iom interface by means of a synchronous transfer interrupt programmed in the stcr register. note: x=1 for channel 1 or 2 for channel 2 the general sequence of operations to access the b/ic channels is: table 14 m p access to b/ic channels (iom ? -2) cxc1 cxc0 cxr cxr bxcr output to iom-2 applications read write read 0 0 icx - bx - bx monitoring, icx monitoring 0 1 icx icx bx icx bx monitoring, icx looping from/to iom-2 1 0 - bx bx bx bx access from/to s; transmission of a constant value in bx channel to s 1 1 bx bx - bx bx looping from s; transmission of a variable pattern in bx channel to s (set configuration register spcr) program synchronous interrupt (st0) read register (bxcr, cxr) (write register) acknowledge sin (sc0) within 62.5 m s from sin sin
psb 2115 psf 2115 functional description semiconductor group 126 11.97 figure 60 principle of b/ic channel access in iom ? -2 terminal mode (a) spcr:c c1, c c0=00 b monitoring, ic monitoring figure 61 access to b and ic channels in iom ? -2 terminal mode dd du layer-1 functions s/t interface interface its09637 p ipac interface conf : iof off) register : c1r / c2r b1cr / b2cr spcr iom -2 iom -2 r ( fsc dcl r bxcr its09638 bx cxr icx s/t interface layer-1 functions iom interface -2 dd du p r
psb 2115 psf 2115 functional description semiconductor group 127 11.97 (b) spcr:c c1, c c0 = 01 b monitoring, ic looping (c) spcr:c c1, c c0 = 10 b access from/to s/t transmission of constant value to s/t its09639 icx bx s/t interface layer-1 functions bxcr cxr p du dd -2 iom interface r its09640 bx bx s/t interface layer-1 functions bxcr cxr p du dd -2 iom interface r
psb 2115 psf 2115 functional description semiconductor group 128 11.97 (d) spcr:c c1, c c0 = 11 b looping from/to s/t transmission of variable pattern to s/t its09641 bx bx s/t interface layer-1 functions cxr p du dd -2 iom interface r
psb 2115 psf 2115 functional description semiconductor group 129 11.97 2.7.4 monitor channel handling in iom-2 mode, the monitor channel protocol is a handshake protocol used for high speed information exchange between the ipac and other devices in monitor channel "0" or "1" ( see figure 53 ). in the non-te mode, only one monitor channel is available ("monitor channel 0"). the monitor channel protocol is necessary: ? for programming and controlling the layer-1 part of the ipac over monitor channel 0. the layer 1 registers are not directly accessible to the host for read and write accesses via the common register set. ? for programming and controlling external devices attached to the iom-2 interface when the layer-1 part of the ipac is disabled (conf:tem). examples of such devices are: layer-1 transceivers (using monitor channel 0), and peripheral v/d modules (using monitor channel 1) that do not need a parallel microcontroller interface, such as the audio ringing codec filter arcofi psb 2163. ? for data exchange between two microcontroller systems attached to two different devices on one iom-2 backplane. use of the monitor channel avoids the necessity of a dedicated serial communication path between the two systems. this greatly simplifies the system design of terminal equipment ( figure 62 ). figure 62 examples of monitor channel applications in iom ? -2 te mode the monitor channel operates on an asynchronous basis. while data transfers on the bus take place synchronized to frame sync, the flow of data is controlled by a handshake procedure using the monitor channel receive (mr0 or 1) and monitor channel transmit (mx0 or 1) bits. for example: data is placed onto the monitor channel and the mx bit is activated. this data will be transmitted repeatedly once per 8-khz frame until the transfer is acknowledged via the mr bit. its09642 v/d-module arcofi psb 2163 control (monitor1) data communication (monitor1) c c r iom -2 -sp r v/d-module itac r psb 2110 ipac psb 2115
psb 2115 psf 2115 functional description semiconductor group 130 11.97 the microprocessor may either enforce a "1" (idle) in mr, mx by setting the control bit mrc1, 0 or mxc1, 0 to "0" (monitor control register mocr), or enable the control of these bits internally by the ipac according to the monitor channel protocol. thus, before a data exchange can begin, the control bit mrc(1, 0) or mxc(1, 0) should be set to "1" by the microprocessor. the monitor channel protocol is illustrated in figure 63 . since the protocol is identical in monitor channel 0 and monitor channel 1 (available in te mode only), the index 0 or 1 has been left out in the illustration. the relevant status bits are: in addition, the status bit: monitor channel active mac (mac0, mac1) indicates whether a transmission is in progress (register: stard). monitor channel data received mdr (mdr0, mdr1) monitor channel end of reception mer (mer0, mer1) for the reception of monitor data, and monitor channel data acknowledged mda (mda0, mda1) monitor channel data abort mab (mab0, mab1) for the transmission of monitor data (register: mosr)
psb 2115 psf 2115 functional description semiconductor group 131 11.97 figure 63 monitor channel protocol (iom ? -2) itd10032 mon mx transmitter mr 1 1 ff ff 1 1 adr 0 1 0 0 data1 0 1 data1 adr 0 0 data1 0 1 data1 0 0 0 0 data2 0 1 data2 data2 0 1 data2 0 0 ff 1 0 ff 1 0 ff 1 1 ff 1 1 receiver mie = 1 mox = adr mxc = 1 mac = 1 mox = data1 mda int. mda int. mda int. mxc = 0 mdr int. rd mor (=adr) mrc = 1 mdr int. mdr int. mrc = 0 mer int. p p 125 s rd mor (=data1) rd mor (=data2) mox = data2 mac = 0
psb 2115 psf 2115 functional description semiconductor group 132 11.97 before starting a transmission, the microprocessor should verify that the transmitter is inactive, i.e. that a possible previous transmission has been terminated. this is indicated by a "0" in the monitor channel active mac status bit. after having written the monitor data transmit (mox) register, the microprocessor sets the monitor transmit control bit mxc to "1". this enables the mx bit to go active (0), indicating the presence of valid monitor data (contents of mox) in the corresponding frame. as a result, the receiving device stores the monitor byte in its monitor receive mor register and generates an mdr interrupt status. alerted by the mdr interrupt, the microprocessor reads the monitor receive (mor) register. when it is ready to accept data (e.g. based on the value in mor, which in a point-to-multipoint application might be the address of the destination device), it sets the mr control bit mrc to "1" to enable the receiver to store succeeding monitor channel bytes and acknowledge them according to the monitor channel protocol. in addition, it enables other monitor channel interrupts by setting monitor interrupt enable to "1". as a result, the first monitor byte is acknowledged by the receiving device setting the mr bit to "0". this causes a monitor data acknowledge mda interrupt status at the transmitter. a new monitor data byte can now be written by the microprocessor in mox. the mx bit is still in the active (0) state. the transmitter indicates a new byte in the monitor channel by returning the mx bit active after sending it once in the inactive state. as a result, the receiver stores the monitor byte in mor and generates a new mdr interrupt status. when the microprocessor has read the mor register, the receiver acknowledges the data by returning the mr bit active after sending it once in the inactive state. this in turn causes the transmitter to generate an mda interrupt status. this "mda interrupt C write data C mdr interrupt C read data C mda interrupt" handshake is repeated as long as the transmitter has data to send. note that the monitor channel protocol imposes no maximum reaction times to the microprocessor. when the last byte has been acknowledged by the receiver (mda interrupt status), the microprocessor sets the monitor transmit control bit mxc to "0". this enforces an inactive ("1") state in the mx bit. two frames of mx inactive signifies the end of a message. thus, a monitor channel end of reception mer interrupt status is generated by the receiver when the mx bit is received in the inactive state in two consecutive frames. as a result, the microprocessor sets the mr control bit mrc to 0, which in turn enforces an inactive state in the mr bit. this marks the end of the transmission, making the monitor channel active mac bit return to "0". during a transmission process, it is possible for the receiver to ask a transmission to be aborted by sending an inactive mr bit value in two consecutive frames. this is effected by the microprocessor writing the mr control bit mrc to "0". an aborted transmission is indicated by a monitor channel data abort mab interrupt status at the transmitter.
psb 2115 psf 2115 functional description semiconductor group 133 11.97 2.7.4.1 handshake procedure structure the structure of the monitor channel is 8 bit wide, located at bit position 16-23 in every time slot (assuming that the first bit in a time slot is located at bit position 0). monitor messages sent to the ipac are 1 or 2 bytes long, monitor messages returned by the ipac are 0, 1, 2, or 5 bytes long depending on the command. transmission of multiple monitor bytes is specified by iom-2. for handshake control in multiple byte transfers, bit 30 , monitor read mr, and bit 31 monitor transmit mx, of every time slot are used. verification a double last-look criterion is implemented for both bytes of the monitor message. codes 3 categories of monitor messages are supported by the ipac: ? mon-1 s 1 /q channel ? mon-2 s 2 channel ? mon-8 register access the order of listing corresponds to the priority attributed to each category. mon-1 messages will be transmitted first, mon-8 messages last in case several messages are initiated simultaneously. the monitor channel is full duplex and operates on a pseudo-asynchronous basis, i.e. while data transfer on the bus takes place synchronized to frame synchronization, the flow of monitor data is controlled by the mr and mx bits. monitor data will be transmitted repeatedly until its reception is acknowledged. figure 65 illustrates a monitor transfer at maximum speed. the transmission of a 2-byte monitor command followed by a 2-byte ipac response requires a minimum of 12 iom- 2 frames. in case the controller is able to confirm the receipt of first ipac response byte in the frame immediately following the mx transition on dout from high to low (i.e. in frame no. 6), 1 iom frame may be saved. note: transmission and reception of monitor messages can be performed simultaneously by the ipac. this feature is used by the ipac to send back the response before the transmission from the controller is completed (ipac does not wait for eom from controller). m1/2: monitor message 1. and 2. byte
psb 2115 psf 2115 functional description semiconductor group 134 11.97 r1/2: monitor response 1. and 2. byte figure 64 handshake protocol with a 2-byte monitor message/response idle state after the bits mr and mx have been held inactive (i.e. high) for two or more successive iom frames, the channel is considered idle in this direction. standard transmission procedure 1. the first byte of monitor data is placed by the external controller (e.g. icc, epic) on the du line of the ipac and mx is activated (low; frame no 1). 2. the ipac reads the data of the monitor channel and acknowledges by setting the mr bit of dd active if the transmitted bytes are identical in two received frames (frame no. 2 because the ipac reads and compares data already while the mx bit is not activated). 3. the second byte of monitor data is placed by the controller on du and the mx bit is set inactive for one single iom frame. this is performed at a time convenient to the controller. 4. the ipac reads the new data byte in the monitor channel after the rising edge of mx has been detected. in the frame immediately following the mx transition active-to- inactive, the mr bit of dd is set inactive. the mr transition inactive-to-active exactly one iom frame later is regarded as acknowledgment by the external controller (frame no. 4-5). frame 1 2 3 4 5 6 7 8 9 10 11 12 ff ff m2 m2 m1 m1 du 0 1 mr mx dd mr mx mon. r2 ff ff r1 t x 1.byte 1.byte ack. ack. 2.byte eom itd09644 data mon. data eom eom no. eom dd du r iom -2 t x 2.byte 1 0 1 0 1 0 ff ff ff ff ff ff t x 1.byte t x 2.byte 1.byte ack. ack. 2.byte ff ff ff r1 r1 r2 ff ff
psb 2115 psf 2115 functional description semiconductor group 135 11.97 the response of the ipac will always be sent immediately after the 2. byte has been received and acknowledged. 5. after both monitor data bytes have been transferred to the ipac, the controller transmits end of message (eom) by setting the mx bit inactive for two or more iom frames (frame no. 5-6). 6. in the frame following the transition of the mx bit from active to inactive, the ipac sets the mr bit inactive (as was the case in step 4). as it detects eom, it keeps the mr bit inactive (frame no. 6). the transmission of the monitor command by the controller is complete. 7. if the ipac is requested to return an answer it will commence with the response as soon as the second controller byte was acknowledged (i.e. response starts in frame 5). the procedure for the response is similar to that described in points 1-6 except for the transmission direction. it is assumed that the controller does not latch monitor data. for this reason one additional frame will be required for acknowledgment. transmission of the 2. monitor byte will be started by the ipac in the frame immediately following the acknowledgment of the first byte. the ipac does not delay the monitor transfer. error treatment and transmission abort in case the ipac does not detect identical monitor messages in two successive frames, transmission is not aborted. instead the ipac will wait until two identical bytes are received in succession. transmission is aborted only if errors in the mr/mx handshake protocol occur. an abort is indicated by setting the mr bit inactive for two or more iom-2 frames. the controller must react with eom. this situation is illustrated in the following figure.
psb 2115 psf 2115 functional description semiconductor group 136 11.97 figure 65 abortion of monitor channel transmission 2.7.4.2 monitor procedure timeout (tod) the ipac can operate with or without the monitor timeout procedure. the tod bit in the sm/ci (timeout disable) controls the timeout function. tod = zero enables the function, tod = one disables it. with the timeout procedure enabled, the ipac checks the monitor status once per multi- frame. this check is performed at the same time the 20th (i.e. last) s-frame is transmitted within the s-interface multi-frame structure. in case the monitor is active the current status of the monitor channel is saved. this condition will be compared with the status at the next check (i.e. 5 ms later). if the condition of the monitor channel has not changed within this period the ipac assumes a lock-up situation. the ipac will resolve this lock-up situation by transmitting on dd a eom (end of message) command (mx bit set to one for 2 iom frames). after the transmission of eom the ipac will retransmit the previous monitor channel data. no monitor channel data will therefore be lost. itd09645 mx mr mx mr eom 1234567 abort request from receiver 1 0 du dd frame no. r iom -2 1 0 1 0 1 0
psb 2115 psf 2115 functional description semiconductor group 137 11.97 2.7.4.3 mon-1, mon-2 commands (s/q channel access) function: mon-1 and mon-2 commands provide access to the ipac internal s/q registers. mon1 controls the s 1 and q channel, mon-2 controls the s 2 channel on the s-interface. in order to synchronize onto multiframing pulses (te, lt-t modes) and issue monitor-messages (lt-s mode) the mfd (multi- frame disable) bit in the configuration register must be set to zero. mon-1 and mon-2 commands may be passed at any instant provided the s- interface is activated. they are always one byte long. direction s ? iom: in the direction s-interface to iom interface a 1 byte buffer is implemented. every time a s/q message has been received on the s-interface which needs to be forwarded to the iom interface this message will be saved in a latch. this latch allows retransmission of the old s/q data on iom in case the message has not been read by the controller before a monitor timeout occurred. while the latched data has not been read correctly from the monitor channel the s/q receiver will not reload the latch. thus the iom controller must read out the s/q messages from iom once per 5 ms (multi-frame period). if this is not guaranteed s/q channel data may be lost. direction iom ? s: no buffering is available in the direction iom-interface to s-interface. the ipac will acknowledge a s/q command correctly and transfer the command into an internal s/q transmit buffer if this command is received during frame numbers 1-17. once a command has been transferred into the internal transmit register new s/q commands received during frames 1-17 will not be accepted by the ipac (i.e. no acknowledgment issued with mr bit). during frame numbers 18-20 however the monitor channel data is transferred directly into the transmit register. during this period previously accepted s/q data could therefore be overwritten. to avoid this situation the controller must be programmed to send no more than one s/q command per multi-frame (5 ms). note that for both s 1 and s 2 channel a separate transmit register is reserved. the above stated restriction thus applies only to s/q commands referring to the same channel. transmission of the stored data will commence with the new multi-frame. priority: mon-1 commands have the highest priority, mon-2 command are treated with second priority. modes: non-auto mode and transparent mode are available in all operational modes. the sqm (sq mode) bit selects transparent mode (one) and non-auto mode (zero).
psb 2115 psf 2115 functional description semiconductor group 138 11.97 non-auto mode in non-auto mode only mon-1 functions to access the s 1 and q channel are available. mon-2 messages (for s 2 channel access) are ignored. in non-auto mode monitor messages are only released after new data has been received. in this mode traffic on the iom monitor channel is reduced. the controller only receives changes in the s 1 or q channel reducing its processing demands as well. transparent mode in transparent mode all s/q channels are available to the user. mon-1 commands/ messages service the s 1 and q channel, mon-2 commands/messages related exclusively to the s 2 channel. in this mode the data received on s 1 , s 2 or q will be forwarded directly to the iom-interface. no comparison with previously sent data is performed so that one mon-1 and one mon-2 monitor message will be issued every 5 ms (once per multi-frame) in te or lt-t modes. in lt-s mode one mon-1 message will indicate every multi-frame the current q channel data received. codes: mon-1 command/message (s 1 /q channel) s1: data in s 1 channel (lt-s input on iom-2; te, lt-t output on iom-2) q: data in q channel (te, lt-t input on iom-2; lt-s output on iom-2) mon-2 command/message (s 2 channel) s 2 : data in s 2 channel (lt-s input on iom-2; te, lt-t output on iom-2) 2.7.4.4 mon-8 commands (register access) mon-8 commands provide access to the ipac internal registers. mon-8 commands allow to configure the s/t transceiver of the ipac. mon-8 commands are specified in detail in chapter 2.4.4 s/t transceiver control . 1 byte 0 001s 11 /q s 12 /q s 13 /q s 14 /q mon-1 data 1 byte 0 010s 21 s 22 s 23 s 24 mon-2 data
psb 2115 psf 2115 functional description semiconductor group 139 11.97 2.7.5 c/i-channel handling the command/indication channel carries real-time status information between the ipac and another device connected to the iom. 1) one c/i channel (called c/i0) conveys the commands and indications between the layer-1 and the layer-2 parts of the ipac. this channel is available in all timing modes (te and non-te). it can be accessed by an external layer-2 device e.g. to control the layer-1 activation/deactivation procedures. c/i0 channel access may be arbitrated via the tic bus access protocol in the iom-2 terminal timing mode (pin mode0=0). in this case the arbitration is done in c/i channel 2 ( see figure 53 ). the c/i0 channel is accessed via register cir0 (in receive direction, layer-1 to layer-2) and register cix0 (in transmit direction, layer-2 to layer-1). the c/i0 code is four bits long. a listing and explanation of the layer-1 c/i codes can be found in chapter 3.6.2 . in the receive direction, the code from layer-1 is continuously monitored, with an interrupt being generated anytime a change occurs (istad:cic). a new code must be found in two consecutive iom frames to be considered valid and to trigger a c/i code change interrupt status (double last look criterion). in the transmit direction, the code written in cix0 is continuously transmitted in c/i0. 2) a second c/i channel (called c/i1) can be used to convey real time status information between the ipac and various non-layer-1 peripheral devices e.g. psb 2163 arcofi- sp. the channel consists of six bits in each direction. it is available only in the iom-2 te timing mode ( see figure 53 ). the c/i1 channel is accessed via registers cir1 and cix1. a change in the received c/i1 code is indicated by an interrupt status without double last look criterion.
psb 2115 psf 2115 functional description semiconductor group 140 11.97 figure 66 applications of tic bus in iom ? -2 bus configuration its09646 d-channel telemetry/ packet communication icc (7) (2) icc with d-channel communication voice/data b-channel (1) icc application ivd lan e-channel signaling signaling b-channel voice/data communication with d-channel dcl fsc idp1 ipac ccitt s-interface p tic bus r iom -2
psb 2115 psf 2115 functional description semiconductor group 141 11.97 2.7.6 tic bus access in iom-2 interface mode the tic bus capability is only available in te mode. the arbitration mechanism implemented in the last octet of iom channel 2 of the iom-2 interface allows the access of external communication controllers (up to 7) to the layer- 1 functions provided in the ipac and to the d channel. (tic bus; see figure 66 ). to this effect the outputs of the controllers (icc:isdn communication controller peb 2070) are wired-or-and connected to pin du. the inputs of the iccs are connected to pin dd. external pull-up resistors on du/dd are required. the arbitration mechanism must be activated by setting moded:dim2-0=001. an access request to the tic bus may either be generated by software ( m p access to the c/i channel) or by the ipac itself (transmission of an hdlc frame in the d-channel). a software access request to the bus is performed by setting cix0:bac=1 bit which has the effect that the bac bit on the du line (bit 5 of last octet of ch2, see figure 67 ) is tied to "0" (i.e. "tic bus is occupied"). in the case of an access request, the ipac checks the bus accessed-bit bac on du for the status "bus free", which is indicated by a logical "1". if the bus is free, the ipac transmits its individual tic bus address programmed in the stcr register. the ipac sends its tic bus address tad and compares it bit by bit with the value on du. if a sent bit set to 1 is read back as 0 because of the access of another d-channel source with a lower tad, the ipac withdraws immediately from the tic bus. the tic bus is occupied by the device which sends its address error-free. if more than one device attempt to seize the bus simultaneously, the one with the lowest address values wins. this one will set bac=0 on tic bus and starts d-channel transmission. figure 67 structure of last octet of ch2 on du when the tic bus is seized by the ipac, the bus is identified to other devices as occupied via the du ch2 bus accessed-bit state "0" until the access request is
psb 2115 psf 2115 functional description semiconductor group 142 11.97 withdrawn. after a successful bus access, the ipac is automatically set into a lower priority class, that is, a new bus access cannot be performed until the status "bus free" is indicated in two successive frames. if none of the devices connected to the iom interface request access to the d and c/i channels, the tic bus address 7 will be present. the device with this address will therefore have access, by default, to the d and c/i channels. note: bit bac (cix0 register) should be reset by the m p when access to the c/i channels is no more requested, to grant other devices access to the d and c/i channels. the availability of the s/t interface d channel is indicated in bit 5 "stop/go" (s/g) of the dd last octet of ch2 channel ( figure 68 ). s/g = 1 : stop s/g = 0 : go figure 68 structure of last octet of ch2 on dd the stop/go bit is available to other layer-2 devices connected to the iom to determine if they can access the s/t bus d channel. the a/b bit is used by the exchange (controlled by layer 1) to temporarily prohibit d- channel transmission (a/b = 0) when only a single d-channel controller on the linecard handles more lines (elic concept). for most applications d-channel transmission is usually permitted (a/b = 1). itd09693 d ci1 mon1 ic2 ic1 ci0 mon0 b2 b1 mr mx mx mr s/g a/b a/b s/g stop/go available/blocked
psb 2115 psf 2115 functional description semiconductor group 143 11.97 2.8 auxiliary interface 2.8.1 mode dependent functions the aux interface provides for various functions, which depend on the operation mode (te, lt-t or lt-s mode) selected by pins mode0 and mode1/eaw (see table 15 ). after reset all pins except drqta and drqra (pins aux0 and aux1 in te mode) are switched as inputs until further configuration is done by the host. aux2-5 (te mode), aux3-5 (lt modes) these pins can be used as programmable i/o lines. in lt modes this function is multiplexed with the pcm interface, i.e. the host can select either pcm functionality (pcfg:pld=0) or standard i/o characteristic on aux3-5 (pcfg:pld=1). as inputs (aoe:oex=1) the state at the pin is latched in when the host performes read operation to register arx. a certain setup and hold time must be ensured for proper operation (see figure 69 ). as outputs (aoe:oex=0) the value in register atx is driven on the pins with a minimum delay after the write operation to this register is performed. they can be configured as open drain (acfg:odx=0) or push/pull outputs (acfg:odx=1). the status (1 or 0) at output pins can be read back from register arx, which may be different from the atx value, e.g. if another device drives a different level. aux2 / int (te mode, output) if configured as output, pin aux2 provides the high active interrupt output signal. if configured as input it can be used as a general purpose input pin as described above (also see chapter 2.6.4 ). table 15 aux pin functions pin te mode lt-t mode lt-s mode aux0 drqta ch0 ch0 aux1 drqra ch1 ch1 aux2 aux2 / int ch2 ch2 aux3 aux3 aux3 / fbout aux3 / fbout aux4 aux4 aux4 / pcmin aux4 / pcmin aux5 aux5 aux5 / pcmout aux5 / pcmout aux6 int0 int0 int0 aux7 int1 int1 / sgout int1
psb 2115 psf 2115 functional description semiconductor group 144 11.97 figure 69 input/output characteristic of aux pins int0 , int1 (all modes), int1 /sgout (lt-t mode) for all modes two pins can be used as programmable i/o with optional interrupt input capability (default after reset, i.e. both interrupts masked). the int0/1 pins are general input or output pins like aux2-5 (see description above). in addition to that, as inputs they can generate an interrupt to the host (ista:int0/1) which is maskable in mask:int0/1. the interrupt input is either edge or level triggered (acfg:el0/1). as outputs both pins are able to sink i ol = 5 ma which allows for direct connection of leds in standalone applications for example. in lt-t mode pin aux7 provides the additional capability to output the s/g bit from the iom-2 interface by setting conf:sgo=1. this may be used for test purposes. drqta, drqra (te mode) for b-channel b dma pins are always available, whereas for channel a the availability depends on the mode of operation. in te mode drqta and drqra are additionally available for the dma interface, so both b-channels can be operated in dma mode. in lt-t and lt-s mode only b-channel b can be operated by dma data transfer. data transfer by dma is described in detail in chapter 2.6.5 dma interface .
psb 2115 psf 2115 functional description semiconductor group 145 11.97 ch0, ch1, ch2 in linecard mode one fsc frame is a multiplex of eight iom-2 channels, each of them consisting of b1-, b2-, monitor-, d- and c/i-channel and mr- and mx-bits. so in lt-t and lt-s mode one of eight channels on the iom-2 interface is selected by ch0-2. these pins must be strapped to vdd or vss according to table 4 . for dcl = 1.536 mhz one of the iom-2 channels 0 - 2 can be selected, for dcl = 4.096 mhz any of the eight iom-2 channels can be selected. pcmin, pcmout pcmin and pcmout are receive and transmit lines of the general pcm interface. if enabled, the b-channels on the iom-2 interface can flexibly be switched to any timeslot of the pcm interface. if the pcm interface is not used (pcfg:pld=1), these pins serve as general i/o pins. fbout (fsc/bcl output) in lt-t and lt-s mode this pin can be programmed to one of two functions: ? fsc output (pcfg:fbs=0): an fsc clock is output which is derived from the dcl input (sclk provides a 1.536 mhz output in lt-t mode) divided by 192. this is especially suitable for multiline applications, where one of several ipacs generates the common fsc. ? bcl output (pcfg:fbs=1): this pin can output a single bit clock (dcl input divided by 2) equal to the iom-2 data rate, especially to serve non iom-2 compatible peripheral devices on the pcm interface. if the pcm interface is not used (pcfg:pld=1), this pin serves as a general i/o pin. table 16 iom-2 channel selection ch2 ch1 ch0 channel on iom-2 000 0 001 1 010 2 011 3 100 4 101 5 110 6 111 7
psb 2115 psf 2115 functional description semiconductor group 146 11.97 2.8.2 pcm interface in lt-s and lt-t mode the ipac provides a pcm interface (pcfg:pld=0, default) that can be disabled (pcfg:pld=1), so that the pcm pins can be used as general i/o pins (see previous chapter 2.8.1 ). 2.8.2.1 pcm lines through its standard pcm interface the ipac can be connected to devices in general tdm (time division multiplex) systems. in this way data controllers, which are not iom-2 compatible, can indirectly be connected to the iom-2 interface, since the programmed pcm timeslots are reflected in the corresponding iom-2 b-channel timeslots. the data and signal lines to be used with the pcm interface depend on the mode of operation and the type of interface of the external device: pcmin receive data: the ipac receives data from a peripheral device on pcmin. the received data is then mapped to a b-channel on the iom-2 interface. pcmout transmit data: the ipac transmits data to a peripheral device on pcmout. this data is originated from a b-channel on the iom-2 interface. fsc frame sync: fsc is used on the iom-2 interface to indicate the beginning of a new iom-2 frame. it is also used for the pcm interface to mark the beginning of new frame. dcl bit clock (double rate) : dcl is the reference clock according to which data is written to pcmout and read from pcmin. for peripheral devices supporting double rate bit clock, the clock signal is directly provided by sclk (lt- t mode) or by the system (lt-s mode). dcl is the same clock as used for the iom-2 interface.
psb 2115 psf 2115 functional description semiconductor group 147 11.97 the frame sync signal fsc and the data clock dcl which are used on the iom-2 interface also serve as the reference clocks on the pcm interface. the rising edge of fsc marks the beginning of a new frame that consists of several timeslots each of which is 8 bits long (see figure 70 ). depending on the frequency of the dcl clock the host can select one of up to 32 possible timeslots (dcl = 4.096 mhz) on the pcm interface from which b-channel data is read from (pcmin) and written to (pcmout). figure 70 pcm frame alignment bcl (fbout) bit clock (single rate): for peripheral devices supporting single rate bit clock, the clock signal is provided at fbout. it is derived from sclk (lt-t mode) or from a system clock (lt-s mode) by an internal divider (division by 2). see chapter 2.8.2.2 . fsc (fbout) frame sync : the frame sync signal is multiplexed with bcl (see above) and output at fbout. it is derived from sclk (lt-t mode) or from a system clock (lt-s mode) by an internal divider (division by 192). see chapter 2.8.2.2 .
psb 2115 psf 2115 functional description semiconductor group 148 11.97 similar as on the iom-2 interface, pcm data is written to pcmout with the first rising edge of dcl and latched in from pcmin with the second falling edge of dcl (see figure 71 ). bcl is derived from the dcl clock by an internal devider (refer to chapter 2.8.2.2 ). figure 71 pcm bit alignment
psb 2115 psf 2115 functional description semiconductor group 149 11.97 the pcm interface can be used to build a connection between non iom-2 compatible voice/data controllers and the iom-2 interface in order to transfer b-channel data from/ to the external device. receive data on the dd line can be mapped to any timeslot on the pcmout line. data received from the external device on any timeslot on pcmin can be mapped to the du line (see figure 72 ). data which is received on pcmin is forwarded to the du line with the next iom-2 frame. similar for the opposite direction, data on dd is forwarded to the pcmout line with the next fsc frame. for test purposes data on pcmin can be mapped to dd and b-channel data on du can be mapped to pcmout (refer to chapter 2.8.2.3 ). figure 72 switching data between pcm and iom ? -2 data transfer from/to the host is performed via the 64-byte fifos. the paragraphs above describe the procedures when data is tranferred between fifo and iom-2 interface while the corresponding data is mapped from iom-2 to the pcm interface. in a similar way data can be transferred directly between fifo and pcm interface while the corrsponding pcm timeslots are mapped to the iom-2 interface ( figure 73 ). the programming of timeslots on pcm (timeslot position and length) is the same as for iom-2, the only difference is that the data path is switched from fifo ? iom-2 (dps = 0) to fifo ? pcm (dps = 1), the timeslot switching between pcm and iom-2 also remains the same.
psb 2115 psf 2115 functional description semiconductor group 150 11.97 figure 73 data path switching 2.8.2.2 clock generation in lt-t mode a 1.536 mhz clock synchronous to the s interface is provided via pin sclk, which can be connected to the dcl input and used as the bit clock (double rate!) for the iom-2 interface. an internal divider derives from the dcl input either a common fsc (division by 192) or a single bit clock (division by 2) which is suitable for external devices that dont support double rate ( figure 74 ). the host can select whether fsc (pcfg:fbs=0) or bcl (pcfg:fbs=1) is provided on fbout. in lt-s mode the 1.536 mhz clock is to be provided by the system. in a similar way it can be used as the dcl input for fsc/bcl generation. figure 74 generation of fsc and bcl in lt-t mode 2115_ 3 iom pcm fifo iom-2 host pcfg *) pita1/2 pota1/2 tsax *) tsar xccr rccr pcfg:dps pcm '1' '0' *) registers for timeslot programming. sclk (lt-t mode) dcl :2 :192 fbout pcfg:fbs dcl = 1.536 mhz ipac bcl = 768 khz or fsc = 8 khz 2115_ 0
psb 2115 psf 2115 functional description semiconductor group 151 11.97 therefore in multiline applications where two or three ipacs are connected across one iom-2 interface, one ipac may generate the fsc signal for all ipacs, while another one generates the bcl, if necessary, for peripheral devices ( figure 75 ). figure 75 multiline application ipac psb 2115 host ipac psb 2115 ipac psb 2115 3 x so interface data controller iom-2 pcm
psb 2115 psf 2115 functional description semiconductor group 152 11.97 2.8.2.3 switching of timeslots figure 76 shows as an example, the switching of timeslots from the pcm lines to the data upstream and data downstream lines of iom-2 channel b1. the datapath switching of channel b2 to the pcm interface is done in a similar way. figure 76 switching of pcm timeslots on iom ? -2 channel b1
psb 2115 psf 2115 functional description semiconductor group 153 11.97 pcm transmit line - pcmout by default the b-channel from the dd line (pota1/2:dudd=0) is connected to the pcm transmit line pcmout, so 8-bit data which is received by the ipac from the s interface on dd (lt-t mode), is transmitted to an external device via the pcm interface. the b-channel from the du line (pota1/2:dudd=1) can also be switched to the transmit line of the pcm interface pcmout. this is necessary in lt-s mode where the direction of iom-2 data lines is inverted (see chapter 2.7.2 ) or it may be used for test purposes. b-channel data from dd (default) or du (optional) is mapped to one of up to 32 (dcl = 4.096 mhz) or 12 (dcl = 1.536 mhz) programmable timeslots (pota1/2:tntx) on pcmout. pcm receive line - pcmin by default the b-channel from the du line (pita1/2:dudd=0) is connected to the pcm receive line pcmin, so 8-bit data which is received on the pcm interface from an external device is transmitted by the ipac to the s interface on du (lt-t mode). the b-channel from the dd line (pita1/2:dudd=0) can also be switched to the receive line of the pcm interface pcmin. as described above this is used in lt-s mode or for test purposes. data from one of up to 32 (dcl = 4.096 mhz) or 12 (dcl = 1.536 mhz) programmable timeslots (pita1/2:tnrx) on pcmin is mapped to the b-channel timeslot on du (default) or dd (optional).
psb 2115 psf 2115 functional description semiconductor group 154 11.97 2.9 oscillator circuit the ipac derives its system clocks from an external clock connected to xtal1 (while xtal2 is not connected) or from a 7.68 mhz crystal connected across xtal1 and xtal2. at pin c768 a buffered 7.68 mhz output clock is provided to drive further devices, which is suitable in multiline applications for example (see figure 77 ). this clock is not synchronized to the s-interface. figure 77 buffered oscillator clock output
psb 2115 psf 2115 operational description semiconductor group 155 11.97 3 operational description 3.1 reset after a reset the ipac is in an idle state and its registers are loaded with specific values. b-channel registers the b-channel related registers are located in the address range 00h - 73h. their reset values are described in table 17 . table 17 reset values for b-channel registers register value after reset (hex) meaning ccr1 00 C power down mode C serial port configuration: nrz coding C interframe time fill: idle (1) are output on du ccr2 00 C special output control: tx on du, rx on dd C transmit data enabled C receive frame start interrupt enable: rfs disabled modeb 00 C mode select: reserved mode C address mode: 1 byte address field C receivers inactive C continuous frame transmission: delayed xpr interrupt C receiver active: hdlc receiver inactive C test loop disabled starb 48 C xfifo write enable C receive line inactive C no commands executing C transmitter inactive istab maskb exirb 00 C no interrupt pending C all interrupts enabled cmdrb 00 C no commands xbch rbchb 00 C interrupt controlled data transfer C transmit continuously disabled xccr rccr 00 C 1-bit time-slot
psb 2115 psf 2115 operational description semiconductor group 156 11.97 d-channel registers the d-channel registers are located in the address range 80h - bah. the important reset values are summarized in table 18 . table 18 reset values for d-channel registers register value after reset (hex) meaning istad 00 C no interrupts maskd 00 C all interrupts enabled exird 00 C no interrupts stard 48 C xfifod is ready to be written to C rfifod is ready to receive at least 16 octets of a new message cmdrd 00 C no command moded 00 C auto mode C 1-octet address field C external timer mode C receiver inactive rbcld rbchd 00 xxx00000 2 C no frame bytes received spcr 00 C du pin = high C iom interface test loop deactivated cir0 7c C another device occupies the d and c/i channels C received c/i code = 1111 C no c/i code change cix0 3f C tic bus is not requested for transmitting a c/i code C transmitted c/i code = 1111 stcr 00 C terminal specific functions disabled C tic bus address = 0000 C no synchronous transfer adf1 00 C inter-frame time fill = continuous 1
psb 2115 psf 2115 operational description semiconductor group 157 11.97 general ipac registers the ipac registers for general functions are located in the address range c0h - cch. the reset values are summarized in table 18 . table 19 reset values for general ipac registers register value after reset (hex) meaning conf 00 C transformer ratio 2:1 C test mode disabled C d-channel priority handler disabled C pin aux7 is general i/o C du/dd are open drain C iom is operational ista 00 C no interrupts mask c0 C int0/1 masked C all other interrupts enabled acfg 00 C aux2-7 are open drain (as outputs) Cint0,1 are negative level triggered (as int inputs) aoe fc C aux2-7 are inputs atx 00 C output value for aux2-7 is 0 pita1/2 00 C pcmin line is disabled C rx data from pcmin mapped to du line C selected pcm timeslot is channel 0 pota1/2 00 C pcmout line is disabled C tx data on pcmout derived from dd line C selected pcm timeslot is channel 0 pcfg 00 C acl will indicate s-bus activation status C aux3-5 are used for pcm interface (lt modes) C fsc (derived from dcl in) is output on aux3 (lt modes) C iom channel 0 selected for pcm interface (lt modes) scfg 00 C 8 bit timeslot length C sds active during timeslot 0 timr2 00 C count down timer mode C timer is disabled
psb 2115 psf 2115 operational description semiconductor group 158 11.97 3.2 initialization after reset the cpu has to write a minimum set of registers and an optionally set dependent on the required features and operating modes. the cpu may switch the ipac between power-up and power-down mode, which has no influence upon the contents of the registers, i.e. the internal state remains stored. in power-down mode however, all internal clocks are disabled, no interrupts are forwarded to the cpu. this state can be used as standby mode, when the ipac is temporarily not used, thus minimizing the power consumption. the individual operating mode must be defined writing the individual mode register (mode, modeb and moded). the need for programming further registers depends on the selected features (operating mode, address mode, user demands) according to the following tables: b-channel registers note: the clock mode 5 is well known from the hscx-te psb 21525, other clock modes are not supported. clock mode register 5 (time slot mode) ccr2, tsar, tsax, xccr, rccr table 20 register setup address mode operating mode 2 byte address field (modeb: adm = 1) 1 byte address field (modeb: adm = 0) non auto rah1 rah2 ral1 ral2 rah1 set to 00 h rah2 set to 00 h ral1 ral2 transparent rah1 rah2 C
psb 2115 psf 2115 operational description semiconductor group 159 11.97 d-channel registers table 21 user demand registers user demand register rfs interrupt provided ccr2 selective interrupts should be masked maskb dma controlled data transfer xbch receive length check feature rlcr extended (modulo 128) counting rah2 register bit effect application spcr spu sdl spm tlp c2c1-0 c1c1-0 pull du low (to request clocking from layer-1 device). switch data line iom-2 data port du/dd direction control 0 terminal timing mode 1 non-terminal timing mode iom-2 interface test loop b/ic channel connect te te lt moded dim2-0 mds2-0 tmd iom interface configuration for d + c/i channel arbitration stop/go bit monitoring for hdlc transmission yes/no hdlc message transfer mode 2 octet/(1 octet) address timer mode external/internal auto mode only adf1 csel2-0 iom channel select (time slot) non-te
psb 2115 psf 2115 operational description semiconductor group 160 11.97 cix0 rss hardware reset generated by either subscriber/exchange awake or watchdog timer te specific functions (tsf = 1) stcr tsf tba2-0 terminal specific function enable tic bus address bus configuration for d+c/i (tic) timr cnt value n1 and t1 in internal timer mode (tmd = 1) t2 in external timer mode xad1 xad2 sapi, tei transmit frame address auto mode only sapi1/2 tei1/2 receive sapi, tei address values for internal address recognition register bit effect application
psb 2115 psf 2115 operational description semiconductor group 161 11.97 general ipac registers register bit effect application conf ods iof idh cfs amp tem pds sgo du/dd output driver selection (open drain or push pull) iom interface off or operational enable/disable iom-2 d-channel priority handler clock relations and recovery on s/t interface transformer ratio tests mode (disable layer-1 function) select phase deviation of the s- interface. s/g bit output on pin aux7 lt-s mode (intelligent nt) te and lt-t mode lt-s and lt-t mode pcfg pld csl2-0 fbs acl led pcm interface enable/disable iom channel select for pcm interface fsc or bcl output on pin aux3 pin acl as indication for s-bus activation or as programmable output output value on acl (if enabled) lt modes lt modes lt modes all modes all modes pita1/2 ena dudd tnrx enable pcmin channel map data on du/dd timeslot number select pcm interface (lt modes)
psb 2115 psf 2115 operational description semiconductor group 162 11.97 pota1/2 ena dudd tntx enable pcmout channel map data on du/dd timeslot number select pcm interface (lt modes) scfg pri tlen tslt priority selection for iom-2 d-channel priority handler timeslot length 8/16 bit timeslot position data strobe signal timr2 tmd cnt timer mode (count down or periodic) timer count (timer off or 1...63 ms) timer 2 acfg od7-2 el1,0 output driver select for aux7-2 (open drain or push pull) trigger mode (edge/level) for interrupt input int0,1 aux-interface aoe oe7-2 switch aux7-2 as input/output aux-interface register bit effect application
psb 2115 psf 2115 operational description semiconductor group 163 11.97 3.3 interrupt structure and logic special events in the ipac are indicated by means of a single interrupt output, which requests the host to read status information from the ipac or transfer data from/to the ipac. since only one int request output is provided, the cause of an interrupt must be determined by the host reading the ipacs interrupt status registers. the structure of the interrupt status registers is shown in figure 78 . figure 78 ipac interrupt status registers
psb 2115 psf 2115 operational description semiconductor group 164 11.97 two interrupt indications can be read directly from the ista register and another six interrupt indications from separate interrupt status registers and extended interrupt registers for the b-channels (istab, exirb, each for b-channel a and b) and the d- channel (istad, exird). after the ipac has requested an interrupt by setting its int pin to low, the host must first read the ipac interrupt status register (ista) in the associated interrupt service routine. the six lowest order bits (bit 5-0) of ista (idc, exd, ica, exa, icb, exb) point to those registers in which the actual interrupt source is indicated. it is possible that several interrupt sources are indicated referring to one interrupt request (e.g. if the ica bit is set, at least one interrupt is indicated in the ista register of channel a). an interrupt source from the general i/o pins aux6 and aux7 of the auxiliary interface is directly indicated in bits 6 and 7 of the ista register, therefore these bits must always be checked (see chapter 3.3.3 ). two bits indicate an interrupt source from the d-channel (see chapter 3.3.2 ) and for each of the channels a and b another two bits indicate a source from istab or exirb (see chapter 3.3.1 ). the int pin of the ipac remains active until all interrupt sources are cleared by reading the corresponding interrupt register. therefore it is possible that the int pin is still active when the interrupt service routine is finished. for some interrupt controllers or hosts it might be necessary to generate a new edge on the interrupt line to recognize pending interrupts. this can be done by masking all interrupts at the end of the interrupt service routine (writing ff h into the mask register) and write back the old mask to the mask register. each interrupt indication of the interrupt status registers can selectively be masked by setting the respective bit in the mask register. the ista register represents the combined interrupt status from all the individual interrupt status registers (istad, exird, istab, exirb). if a specific interrupt source (e.g. istad:rme) is acknowledged by the host the interrupt indication in the ista register (in this case ista:icd) is reset, it does not need to be acknowledged by reading ista. in other words, the host does not need to read the ista register if it uses some other mechanism to determine the interrupt source. this may be suitable for the adaptation of driver software based on hscx-te psb 21525 and isac-s te psb 2186 which already implements the subsequent check of all b-channel and d-channel interrupt registers.
psb 2115 psf 2115 operational description semiconductor group 165 11.97 3.3.1 b-channel interrupts the b-channel related interrupt sources can be logically grouped into C receive interrupts, C transmit interrupts and C special condition interrupts. each interrupt indication of the istab registers can be selectively masked by setting the respective bit in the maskb registers. the following tables give a complete overview of the individual interrupt indications and the cause of their activation as well as specific restrictions (marked with * ). table 22 receive interrupts rpf receive pool full (istab) activated as soon as 64-bytes are stored in the rfifob but the message is not yet completed. rme receive message end (istab) activated if either one message up to 64 bytes or the last part of a message with more than 64 bytes is stored in the rfifob, i.e. after the reception of the crc and closing flag sequence. rfo receive frame overflow (exirb) activated if a complete frame could not be stored due to occupied rfifob, i.e. the rfifob is full and the ipac has detected the start of a new frame. rfs receive frame start (exirb) *only activated if enabled by setting the rie bit in ccr2 register. activated after the start of a valid frame has been detected, i.e. after a valid address check in operation modes providing address recognition, otherwise after the opening flag (transparent mode 0), delayed by two bytes. after an rfs interrupt, the contents of C rhcrb C ral1 C rstab C bit 3-0 are valid and can be read by the cpu.
psb 2115 psf 2115 operational description semiconductor group 166 11.97 table 23 transmit interrupts xpr transmit pool ready (istab) activated whenever a 64-byte fifo pool is empty and accessible to the cpu, i.e. C following a xres command via cmdrb. repeatedly during frame transmission started by xtf command, and no end of message indication (xme command) has been issued yet by the cpu, C after the end-of-message indication when frame transmission of a transparent frame is completed (i.e. crc and closing flag sequence are shifted out). xmr transmit message repeat (exirb) transmission of the last frame has to be repeated. xdu transmit data underrun (exirb) activated if the xfifob holds no further data, i.e. all data has been shifted out via the serial du pin, but no end of message (eom) indication has been detected by the ipac. the eom indication is supplied by a xme command from the cpu.
psb 2115 psf 2115 operational description semiconductor group 167 11.97 3.3.2 d-channel interrupts the cause of an interrupt related to the d-channel is determined by the microprocessor by reading the interrupt status register istad and the extended interrupt status register exird. a read of the istad register clears all bits except cic. cic is cleared by reading cir0. a read of exird clears the exd bit in ista as well as the exird register itself. each interrupt source in istad register can be selectively masked by setting to 1 the corresponding bit in maskd. masked interrupt status bits are not indicated when istad is read. instead, they remain internally stored and pending, until the mask bit is reset to zero. reading the istad while a mask bit is active has no effect on the pending interrupt. in the event of an extended interrupt exird, exd is not set when the corresponding mask bit in mask is active and no interrupt (int ) is generated. in the event of a c/i channel interrupt cic is set, even when the corresponding mask bit in maskd is active, but no interrupt (int ) is generated. except for cic and mos all interrupt sources are directly determined by a read of istad and exird. the fifo logic, which consists of a 2 32 byte receive fifo (rfifod) and a 2 32 byte transmit fifo (xfifod), as well as an intelligent fifo controller, builds a flexible interface to the upper protocol layers implemented in the microcontroller. the interrupt sources from the d-channel hdlc controller are listed in table 24 .
psb 2115 psf 2115 operational description semiconductor group 168 11.97 table 24 interrupts from d-channel hdlc controller mnemonic register meaning reaction layer-2 receive rpf istad receive pool full. request to read received octets of an uncompleted hdlc frame from rfifod. read 32 octets from rfifod and acknowledge with rmc. rme istad receive message end. request to read received octets of a complete hdlc frame (or the last part of a frame) from rfifod. read rfifod (number of octets given by rbcl4-0) and status information and acknowledge with rmc. rfo exird receive frame overflow. a complete frame has been lost because storage space in rfifod was not available. error report for statistical purposes. possible cause: deficiency in software. pce exird protocol error. s or i frame with incorrect n(r) or s frame with i field received (in auto mode only). link re-establishment. indication to layer 3. layer-2 transmit xpr istad transmit pool ready. further octets of an hdlc frame can be written to xfifod. if xif&xme was issued (auto mode), indicates that the message was successfully acknowledged with s frame. write data bytes in the xfifod if the frame currently being transmitted is not finished or a new frame is to be transmitted, and issue an xif, xif&xme, xtf or xtf&xme command.
psb 2115 psf 2115 operational description semiconductor group 169 11.97 xmr exird transmit message repeat. frame must be repeated because of a transmission error (all hdlc message transfer modes) or a received negative acknowledgment (auto mode only) from peer station. transmission of the frame must be repeated. no indication to layer 3. xdu exird transmit data underrun. frame has been aborted because the xfifod holds no further data and xme (i.e. xif&xme or xtf&xme) was not issued. transmission of the frame must be repeated. possible cause: excessively long software reaction times. rsc istad receive status change. a status change from peer station has been received (rr or rnr frame), auto mode only. stop sending new i frames. tin istad timer interrupt. external timer expired or, in auto mode, internal timer (t200) and repeat counter (n200) both expired. link re-established. indication to layer 3. (auto mode) tin2 istad timer interrupt 2. timer 2 expired (single interrupt or continuous interrupts with timer period). no acknowledge necessary. restart timer if required. table 24 interrupts from d-channel hdlc controller (contd) mnemonic register meaning reaction
psb 2115 psf 2115 operational description semiconductor group 170 11.97 figure 79 shows the cic and mos interrupt logic. cic interrupt logic a cic interrupt may originate C from a change in received c/i channel (0) code (cic0) or (in the case of iom-2 terminal mode only) C from a change in received c/i channel 1 code (cic 1). the two corresponding status bits cic0 and cic1 are read in cir0 register. cic1 can be individually disabled by clearing the enable bit ci1e (adf1 register). in this case the occurrence of a code change in cir1 will not be displayed by cic1 until the corresponding enable bit has been set to one. bits cic0 and cic1 are cleared by a read of cir0. an interrupt status is indicated every time a valid new code is loaded in cir0 or cir1. but in the case of a code change, the new code is not loaded until the previous contents have been read. when this is done and a second code change has already occurred, a new interrupt is immediately generated and the new code replaces the previous one in the register. the code registers are buffered with a fifo size of two. thus, if several consecutive codes are detected, only the first and the last code is obtained at the first and second register read, respectively.
psb 2115 psf 2115 operational description semiconductor group 171 11.97 mos interrupt logic in the case of iom-2 non-terminal timing modes only one monitor channel is handled and mor1 and mox1 are unused. the interrupt logic is different for monitor channel 0 and channel 1: ? monitor channel 0 the monitor data receive mdr0 and the monitor channel end of reception mer0 interrupt status have two enable bits, monitor receive interrupt enable ( mre0 ) and mr bit control ( mrc0 ). the monitor channel data acknowledged mda0 and monitor channel data abort mab0 interrupt status bits have a common enable bit monitor interrupt enable mie0 . mre0 prevents the occurrence of mdr0 status, including when the first byte of a packet is received. when mre0 is active (1) but mrc0 is inactive, the mdr0 interrupt status is generated only for the first byte of a receive packet. when both mre0 and mrc0 are active, mdr is always generated and all received monitor bytes - marked by a 1-to-0 transition in mx bit - are stored. (additionally, an active mrc0 enables the control of the mr handshake bit according to the monitor channel protocol.) ? monitor channel 1 the monitor data receive interrupt status mdr1 has two enable bits, monitor receive interrupt enable ( mre1 ) and mr bit control ( mrc1 ). the monitor channel end of reception mer1 , monitor channel data acknowledged mda1 and monitor channel data abort mab1 interrupt status bits have a common enable bit monitor interrupt enable mie1 . mre1 prevents the occurrence of mdr1 status, including when the first byte of a packet is received. when mre1 is active (1) but mrc1 is inactive, the mdr1 interrupt status is generated only for the first byte of a receive packet. when both mre1 and mrc1 are active, mdr1 is always generated and all received monitor bytes - marked by a 1- to-0 transition in mx bit - are stored. (additionally, an active mrc1 enables the control of the mr handshake bit according to the monitor channel protocol.)
psb 2115 psf 2115 operational description semiconductor group 172 11.97 figure 79 a) cic interrupt structure b) mos interrupt structure
psb 2115 psf 2115 operational description semiconductor group 173 11.97 3.3.3 auxiliary interface interrupts from external devices can be indicated in the interrupt status register (ista) of the ipac. the auxiliary pins aux6 and 7 can be configured as general i/o pins and as inputs they can generate a maskable interrupt to the host (int0, 1). the host can configure whether the interrupt on these pins is edge or level triggered. in contrast to all other interrupt sources in the ista register, int0 and int1 are masked (mask register) after reset. table 25 auxiliary interface interrupts mnemonic register meaning reaction int0/1 ista external interrupt 0/1 activated if a negative edge or level (programmable in acfg:el0/1) is detected on auxiliary pins aux6/7. service interrupt from external device(s).
psb 2115 psf 2115 operational description semiconductor group 174 11.97 3.4 b-channel data transfer initially, the cpu should bring the transmitter and receiver to a defined state by issuing a xres (transmitter reset) and rhr (receiver reset) command via the cmdrb register. if data reception should be performed, the receiver must be activated by setting the rac bit in modeb to 1. after having performed the initialization, the cpu switches each individual b-channel of the ipac into operational phase by setting the pu bit in the ccr1 register (power-up). now the ipac is ready to transmit and receive b-channel data. the control of the data transfer phase is mainly done by commands from cpu to ipac via the cmdrb register, and by interrupt indications from ipac to cpu. additional status information, which does not trigger an interrupt, is available in the starb register. 3.4.1 data transmission interrupt mode in transmit direction 2 64 byte fifo buffers (transmit pools) are provided for each channel. after checking the xfifob status by polling the transmit fifo write enable bit (xfw in starb register) or after a transmit pool ready (xpr) interrupt, up to 64 bytes may be entered by the cpu to the xfifob. the transmission of a frame can then be started issuing a xtf command via the cmdrb register. if the transmit command does not include an end of message indication (cmdrb : xme), the ipac will repeatedly request for the next data block by means of a xpr interrupt as soon as no more than 64 bytes are stored in the xfifob, i.e. a 64-byte pool is accessible to the cpu. this process will be repeated until the cpu indicates the end of message per command, after which frame transmission is finished correctly by appending the crc and closing flag sequence. in case no more data is available in the xfifob prior to the arrival of xme, the transmission of the frame is terminated with an abort sequence and the cpu is notified per interrupt (exirb : xdu). the frame may also be aborted per software (cmdrb : xres).
psb 2115 psf 2115 operational description semiconductor group 175 11.97 the data transmission sequence, from the cpus point of view, is outlined in figure 80 . figure 80 interrupt driven data transmission (flow diagram) itd09647 xpr interrupt or xfw bit in starb register=1 n command xtf write data (up to 64 bytes) to xfifob end of message ? command xtf + xme end transmit pool ready ? start n y y
psb 2115 psf 2115 operational description semiconductor group 176 11.97 the activities at both serial and cpu interface during frame transmission (supposed frame length = 140 bytes) is shown in figure 81 . figure 81 interrupt driven transmission sequence example serial interface ipac cpu interface itd09648 wr xtf ... ... wr command wr ... xpr xtf+xme xpr xpr xtf transmit frame 64 64 12 (140 bytes) 64 bytes 64 bytes 12 bytes
psb 2115 psf 2115 operational description semiconductor group 177 11.97 back to back frames if two or more frames should be transmitted in a high speed sequence without interframe time fill, the transmission sequence according figure 82 has to be used. this means that the closing flag will be immediately followed by an opening flag. the ipac receiver, however, is capable of receiving frames separated by only one (shared) flag. figure 82 continuous frames transmission (flow diagram) itd09649 start transmit pool ready ? y xfifob : data (<= 64 bytes) last frame ? xpr interrupt or xfw bit in starb register = 1 ? end frame cmdrb : xtf ? pool ready transmit y cmdrb : xtf + xme end y y cmdrb : xme
psb 2115 psf 2115 operational description semiconductor group 178 11.97 the activities during frame transmission (supposed two frames, 36 bytes and 104 bytes) is shown in figure 83 . figure 83 continuous frames transmission sequence example dma mode prior to data transmission, the length of the next frame to be transmitted must be programmed via the transmit byte count registers (xbch, xbcl). the resulting byte count equals the programmed value plus one byte, i.e. since 12 bits are provided via xbch, xbcl (xbc11. . .xbc0) a frame length of 1 up to 4096 bytes (4 kbytes) can be selected. after this, data transmission can be initiated by command (xtf). the ipac will then autonomously request the correct amount of write bus cycles by activating the drqta/ b line. depending on the programmed frame length, block data transfers of n 64-bytes + remainder (n = 0, 1,64) are requested everytime a 64-byte fifo half (transmit pool) is empty and accessible to the dma controller. serial interface ipac cpu interface itd09650 36 bytes wr xtf 36 bytes ... xme ... wr xtf wr ... xtf xpr xtf + xme xpr itf frame 1 itf xpr xpr frame 2 64 bytes 40 bytes 64 bytes 40 bytes
psb 2115 psf 2115 operational description semiconductor group 179 11.97 the following figure gives an example of a dma driven transmission sequence with a supposed frame length of 140 bytes, i.e. programmed transmit byte count (xcnt) equal 139 bytes. figure 84 dma driven transmission sequence example itd09651 drqt (12) drqt (64) 12 64 64 wr serial interface ipac cpu/dma interface wr wr drqt (64) xtf wr; xcnt = 139 transmit frame xpr (140 bytes)
psb 2115 psf 2115 operational description semiconductor group 180 11.97 3.4.2 data reception interrupt mode also 2 64 byte fifo buffers (receive pools) are provided for each channel in receive direction. there are two different interrupt indications concerned with the reception of data: ? rpf (receive pool full) interrupt, indicating that a 64 byte block of data can be read from the rfifob and the received message is not yet complete. ? rme (receive message end) interrupt, indicating that the reception of one message is completed, i.e. either C one message with less than 64 bytes, or the C last part of a message with more than 64 bytes is stored in the rfifob. after an interrupt has been processed, i.e. the received data has been read from the rfifob, this must be explicitly acknowledged by the cpu issuing a rmc (receive message complete) command. the cpu has to handle the rpf interrupt before additional 64 bytes are received via the serial interface which would cause a receive data overflow condition. in addition to the message end (rme) interrupt, the following information about the received frame is stored by the ipac in special registers and/or rfifob: table 26 status information after rme interrupt length of message (bytes) rbchb, rbclb register address combination and/or rstab rfifob: last byte address field ral1 rfifob control field rhcrb rfifob type of frame (command/response) rstab rfifob: last byte crc result (good/bad) rstab rfifob: last byte valid frame (yes/no) rstab rfifob: last byte abort sequence recognized (yes/no) rstab rfifob: last byte data overflow rstab rfifob: last byte
psb 2115 psf 2115 operational description semiconductor group 181 11.97 the following figure gives an example of an interrupt controlled reception sequence, supposed that a long frame (132 bytes) followed by two short frames (12 bytes each) are received. figure 85 interrupt driven reception sequence example dma mode if the rfifob contains 64 bytes, the ipac autonomously requests a block data transfer by dma activating the drqra/b line as long as the start of the 64th read cycle. this forces the dma controller to continuously perform bus cycles till 64 bytes are transferred from the ipac to the system memory. if the rfifob contains less than 64 bytes (one short frame or the last part of a long frame) the ipac requests a block data transfer depending on the contents of the rfifob according to the following table: serial interface ipac cpu interface itd09652 rpf rmc rd 64 bytes rd rmc rpf rme rmc rmc rme rme rmc rd status 64 64 4 12 12 receive frame 1 rd count rd count rd status ... ... ... ... ... rd count rd status (132 bytes) 64 bytes
psb 2115 psf 2115 operational description semiconductor group 182 11.97 note: all available status informations after rme are summarized in table 11. after the dma controller has been set up for the reception of the next frame, the cpu must be issue a rmc command to acknowledge the completion of the receive frame processing. the ipac will not initiate further dma cycles by activating the drqra/b line prior to the reception of rmc. note: its also possible to set up the dma controller immediately after the start of a frame has been detected using the ipacs rfs (receive frame start) interrupt option. the following figure gives an example of a dma controlled reception sequence, supposed that a long frame (132 bytes) followed by one short frame (12 bytes) is received. figure 86 dma driven reception sequence example rfifob contents (no. of bytes) dma request (no. of bytes) 1, 2, 3 4 4 - 7 8 8 - 15 16 16 - 31 32 32 - 64 64 itd09653 drqr(64) drqr (64) drqr (8) drqr(16) 12 4 64 64 receive 132 bytes receive 12 bytes rd rd rd rd rmc rme rd count (13) rme rd count (133) rmc serial interface ipac cpu interface 136 dma read cycles
psb 2115 psf 2115 operational description semiconductor group 183 11.97 3.5 d-channel data transfer 3.5.1 hdlc frame transmission after the xfifod status has been checked by polling the transmit fifo write enable (xfw) bit or after a transmit pool ready (xpr) interrupt, up to 32 bytes may be entered in xfifod. transmission of an hdlc frame is started when a transmit command is issued. the opening flag is generated automatically. in the case of an auto mode transmission (xif or xifc), the control field is also generated by the ipac, and the contents of register xad1 (and xad2 for lapd) are transmitted as the address, as shown in figure 87 . figure 87 transmit data flow itd09625 description of symbols: generated automatically by ipac written initially by cpu (into register) loaded (repeatedly) by cpu upon ipac request (xpr interrupt) xfifod xad1 xad2 xfifod address high low address control information crc flag appended if cpu has issued transmit message end (xme) command. if 2 byte address field selected * transmit transparent frame (auto-mode only!) i frame * transmit transmitted hdlc frame flag
psb 2115 psf 2115 operational description semiconductor group 184 11.97 the hdlc controller will request another data block by an xpr interrupt if there are no more than 32 bytes in xfifod and the frame close command bit (transmit message end xme) has not been set. to this the microcontroller responds by writing another pool of data and re-issuing a transmit command for that pool. when xme is set, all remaining bytes in xfifod are transmitted, the crc field and the closing flag of the hdlc frame are appended and the controller generates a new xpr interrupt. the microcontroller does not necessarily have to transfer a frame in blocks of 32 bytes. as a matter of fact, the sub-blocks issued by the microcontroller and separated by a transmit command, can be between 0 and 32 bytes long. if the xfifod runs out of data and the xme command bit has not been set, the frame will be terminated with an abort sequence (seven 1s) followed by inter-frame time fill, and the microcontroller will be advised by a transmit data underrun (xdu) interrupt. an hdlc frame may also be aborted by setting the transmitter reset (xres) command bit.
psb 2115 psf 2115 operational description semiconductor group 185 11.97 3.5.2 hdlc frame reception assuming a normal running communication link (layer 1 activated, layer 2 link established), figure 88 illustrates the transfer of an i frame. the transmitter is shown on the left and the receiver on the right, with the interaction between the microcontroller system and the ipac in terms of interrupt and command stimuli. when the frame (excluding the crc field) is not longer than 32 bytes, the whole frame is transferred in one block. the reception of the frame is reported via the receive message end (rme) interrupt. the number of bytes stored in rfifod can be read out from rbcld. the receive status register (rstad) includes information about the frame, such as frame aborted yes/no or crc valid yes/no and, if complete or partial address recognition is selected, the identification of the frame address. depending on the hdlc message transfer mode, the address and control field of the frame can be read from auxiliary registers (sapr and rhcrd), as shown in figure 89 . figure 88 transmission of an i frame in the d channel (subscriber to ex- change) itd09654 system c- ipac c- system ipac lapd link xif/xtf xpr xpr xif/xtf xifc/xtfc xpr (transparent transmit) transmit) (auto mode xpr i-frame s-frame (rr) ) : = data transfer * *) in auto mode the "rr" response will be transmitted autonomously rpf rmc rpf rmc rme rmc
psb 2115 psf 2115 operational description semiconductor group 186 11.97 figure 89 receive data flow note 1: only if a 2-byte address field is defined (mds0 = 1 in moded register). note 2: comparison with group tei (ff h ) is only made if a 2-byte address field is defined mds0 = 1 in moded register). note 3: in the case of an extended, modulo 128 control field format (mcs = 1 in sap2 register) the control field is stored in rhcrd in compressed form (i frames). note 4: in the case of extended control field, only the first byte is stored in rhcrd, the second in rfifod. flag address high low address control information crc flag sap1,sap2 fe,fc ff tei1,tei2 rhcrd rfifod rstad rstad rfifod rhcrd tei1,tei2 ff fe,fc sap1,sap2 rstad rfifod tei1,tei2 ff rstad rfifod rstad rfifod fe,fc sap1,sap2 sapr (note 1) (note 1) (note 2) (note 2) (note 3) (note 4) itd09623 auto-mode (u and i frames) non-auto mode transparent mode 1 transparent mode 2 transparent mode 3 description of symbols: checked automatically by ipac compared with register or fixed value stored into register or rfifod rhcrd (note 4)
psb 2115 psf 2115 operational description semiconductor group 187 11.97 a frame longer than 32 bytes is transferred to the microcontroller in blocks of 32 bytes plus one remainder of length 1 to 32 bytes. the reception of a 32-byte block is reported by a receive pool full (rpf) interrupt and the data in rfifod remains valid until this interrupt is acknowledged (rmc). this process is repeated until the reception of the remainder block is completed, as reported by rme ( figure 88 ). if the second rfifod pool has been filled or an end-of frame is received while a previous rpf or rme interrupt is not yet acknowledged by rmc, the corresponding interrupt will be generated only when rmc has been issued. when rme has been indicated, bits 0-4 of the rbcld register represent the number of bytes stored in the rfifod. bits 7 to 5 of rbcld and bits 0 to 3 of rbchd indicate the total number of 32-byte blocks which where stored until the reception of the remainder block. when the total frame length exceeds 4095 bytes, bit ov (rbchd) is set but the counter is not blocked. the contents of rbcld, rbchd and rstad registers are valid only after the occurrence of the rme interrupt, and remain valid until the microprocessor issues an acknowledgment (rmc). the contents of rhcrd and/or sapr, also remain valid until acknowledgment. if a frame could not be stored due to a full rfifod, the microcontroller is informed of this via the receive frame overflow interrupt (rfo).
psb 2115 psf 2115 operational description semiconductor group 188 11.97 3.6 control of layer-1 3.6.1 activation/deactivation of iom ? -2 interface in lt-t and lt-s applications the iom interface should be kept active, i.e. the clock dcl and the frame sync fsc (inputs) should always be supplied by the system. in te applications the iom-2 interface can be switched off in the inactive state, reducing power consumption to a minimum. in this deactivated state the clock line is low and the data lines are high. in te mode the iom-2 interface can be kept active while the s interface is deactivated by setting the cfs bit to "0" (conf register). this is the case after a hardware reset. if the iom-2 interface should be switched off while the s interface is deactivated, the cfs bit should be set to "1". in this case the internal oscillator is disabled when no signal (info 0) is present on the s bus and the c/i command is 1111 = diu (refer to chapter 3.6.2 ). if the te wants to activate the line, it has first to activate the iom-2 interface either by using the "software power up" function (spcr:spu bit) or by setting the cfs bit to "0" again. for the te case the deactivation procedure is shown in figure 90 . after detecting the code diu (deactivate indication upstream) the layer 1 of the ipac responds by transmitting did (deactivate indication downstream) during subsequent frames and stops the timing signals synchronously with the end of the last c/i (c/i0) channel bit of the fourth frame.
psb 2115 psf 2115 operational description semiconductor group 189 11.97 figure 90 deactivation of the iom ? interface the clock pulses will be enabled again when the du line is pulled low (bit spu, spcr register) i.e. the c/i command tim = "0000" is received by layer 1, or when a non-zero level on the s-line interface is detected. the clocks are turned on after approximately 0.2 to 4 ms depending on the capacitances on xtal 1/2. dcl is activated such that its first rising edge occurs with the beginning of the bit following the c/i (c/i0) channel. after the clocks have been enabled this is indicated by the pu code in the c/i channel and, consequently, by a cic interrupt. the du line may be released by resetting the software power up bit spcr:spu=0, and the c/i code written to cix0 before (e.g. tim or ar8) is output on du. itd09655 diu did dr fsc du dd deactivated d b2 mono d b1 cio cio dcl r iom -2 iom -2 r diu diu diu diu diu diu diu diu dr dr dr dr did did did
psb 2115 psf 2115 operational description semiconductor group 190 11.97 figure 91 activation of the iom ? interface itd09656 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ fsc du dd fsc du dd dcl spu = 1 spu = 0 cic : cixo = tim int. tim pu b1 b1 mx mr 0.2 to 4 ms 132 x dcl tim tim pu pu pu pu r iom -ch1 r iom -ch2 iom -ch2 r iom r -ch1
psb 2115 psf 2115 operational description semiconductor group 191 11.97 the ipac supplies iom timing signals as long as there is no diu command in the c/i (c/i0) channel. if timing signals are no longer required and activation is not yet requested, this is indicated by programming diu in the cix0 register. as an alternative to activation via du, the iom interface can be activated by setting the cfs bit to "0". the activation of fsc and dcl in this case is similar to figure 91 . note that the iom interface can be deactivated through diu (power-down state, figure 90 ) only if cfs is set to logical "1". 3.6.2 activation/deactivation of s/t interface assuming the ipac has been initialized with the required features of the application, it is now ready to transmit and receive messages in the d channel (lapd support). but as a prerequisite, the layer 1 has to be activated. the layer-1 functions are controlled by commands issued via the cix0 register. these commands, sent over the iom c/i channel 0 to layer 1, trigger certain procedures, such as activation/deactivation, switching of test loops and transmission of special pulse patterns. these are governed by layer-1 state diagrams in accordance with itu i.430. responses from layer 1 are obtained by reading the cir0 register after a cic interrupt (istad). the state diagrams are shown in the following figures. the activation/deactivation implemented by the ipac in its different operating modes agrees with the requirements set forth in itu recommendations. state identifiers f1-f8 (te/lt-t) and g1-4 (lt-s) are in accordance with itu i.430. state machines are the key to understanding the ipac in different operational modes. they include all information relevant to the user and enable him to understand and predict the behaviour of the ipac. the informations contained in the state diagrams are: C state name (based on itu i.430) C s/t signal transmitted C c/i code received C c/i code transmitted C transition criteria the coding of the c/i commands and indications are described in detail in chapter 3.6.6 .
psb 2115 psf 2115 operational description semiconductor group 192 11.97 it is essential to be able to interpret the state diagrams. figure 92 state diagram notation the following example illustrates the use of a state diagram with an extract of the te state diagram. the state explained is f3 power down. the state may be entered by either of two methods: C from state test mode i after the c/i command di has been received. C from state f3 pending deactivation, f3 power up or f4 pending activation after the c/i command di has been received. the following informations are transmitted: C info 0 (no signal) is sent on the s/t-interface. C c/i message dc is issued on the iom-2 interface. the state may be left by either of the following methods: C leave for the state f3 power up after synchronous or asynchronous tim code has been received on iom. C leave for state f5/8 unsynchron after any kind of signal (not info 0) has been recognized on the s/t-interface. C leave for state f4 pending activation in case c/i = ar8 or ar10 is received. itd09657 cmd. ind. state i c / unconditional transition s / t interface info out ipac in i x i r ipac
psb 2115 psf 2115 operational description semiconductor group 193 11.97 as can be seen from the transition criteria, combinations of multiple conditions are possible as well. a & stands for a logical and combination. an or indicates a logical or combination. the sections following the state diagram contain detailed information on all states and signals used. these details are mode dependent and may differ for identically named signals/states. they are therefore listed for each mode. 3.6.3 state machine te/lt-t modes this section is applicable for both te and lt-t operational modes.
psb 2115 psf 2115 operational description semiconductor group 194 11.97 3.6.3.1 te/lt-t modes state diagram figure 93 state transition diagram in te/lt-t modes notes: 1. see state diagram for unconditional transitions for details 2. x = tm1 or tm 2 or res or arl x = tm1 & tm2 & res & arl 3. ar p = ar8 or ar10 itd09694 f3 power down dc di i0 i0 i0 i0 tim dis f3 power up i1 i0 ar pu f4 pend. act. f5/8 unsynchron rsy x i0 f6 synchronized ar i2 i3 i0 i0 ar dr f3 pend. deact. f7 activated reset/loop cmd. ind. state pu di tim di i0 ar i0 tim tim tim rst di i2 i0 i0 di i3 i4 i4 i2 i4 i2 in out s/t i4 i3 f7 slip detected it * tmi tmi test mode i di tim tmi any state p p ar 0.5 ms slip i0 res+arl ai slip p 1) x iom p r x i r i 5) 3) 2) i2 2) x x 2) x 2) 4) 2) any state &i4 i4 & i2 i4 & i2 i0 4. ai p = ai8 or ai10 5. tmi = tm1 or tm2 b- and d-channel on sx transparent if the command equals to ar8 or ar10.
psb 2115 psf 2115 operational description semiconductor group 195 11.97 figure 94 state diagram of the te/lt-t modes, unconditional transitions note: 1. in state loop a activated i3 is the internal signal, the external signal is i0. itd09695 i0 * res reset i3 * arl arl loop a arl cmd. ind. state tim arl i3 rst arl di in out s/t tim di tim res res i3 1) res f3 power up any state i3 * ail rsy res iom i x i r di activated loop a r state any closed f3 power down f3 power down
psb 2115 psf 2115 operational description semiconductor group 196 11.97 3.6.3.2 te/lt-t modes transition criteria the transition criteria used by the ipac are described in the following sections. they are grouped into: C c/i commands C pin states C events related to the s/t-interface c/i commands ar8 activation request with priority 8 for d-channel transmission. this command is used to start a te initiated activation. d-channel priority 8 is the highest priority. it should be used to request signaling information transfer. ar10 activation request with priority 10 for d-channel transmission. this command is used to start a te initiated activation. d-channel priority 10 is the lower priority. it should be used to request packet data transfer. arl activation request loop. the ipac is requested to operate an analog loop- back close to the s/t-interface. arl is an unconditional command. di deactivation indication. this command transfers the ipac into f3 power down mode and disables the iom-2 clocks. res reset of state machine. transmission of info 0. no reaction to incoming infos. res is an unconditional command. tim timing request. requests the ipac to change into power-up state and provide timing signals on iom-2. tm1 test mode 1. transmission of single pulses on the s/t-interface. the pulses are transmitted with alternating polarity at a frequency of 2 khz. tm1 is an unconditional command. tm2 test mode 2. transmission of continuous pulses on the s/t-interface. the pulses are sent with alternating polarity at a rate of 96 khz. tm2 is an unconditional command.
psb 2115 psf 2115 operational description semiconductor group 197 11.97 pin states pin-res pin-reset. corresponds to a high level at pin rst. at power up, a reset pulse (rst high active) of minimum 2 dcl clock cycles should be applied to bring the ipac to the state reset. after that the ipac may be operated according to the state diagrams. in nt mode the dcl is needed during the hardware reset (res = 1) for initialization. the function of this pin is identical to the c/i code res concerning the state machine. s/t-interface events i0 info 0 detected i0 a signal different to info 0 was detected i2 info 2 detected i4 info 4 detected slip slip detected (applicable in lt-t mode only) iom-2 interface framing and s/t-interface framing differences have exceeded the specified limit. it is likely that data will be lost to enable a resynchronization. transmitted signals and indications in te/lt-t modes the following signals and indications are issued on the iom-2 and s/t-interface.
psb 2115 psf 2115 operational description semiconductor group 198 11.97 c/i indications abbreviation indication remark dr deactivate request deactivation request via s/t-interface res reset reset acknowledge tm1 test mode 1 tm1 acknowledge tm2 test mode 2 tm2 acknowledge slip slip detected (lt-t only) wander is larger than 50 m s peak-to-peak (or 25 m s peak-to-peak if programmed, refer to the c/w/p-bit of the mon-8 configuration register) rsy resynchronization during level detect signal received, receiver not synchronous pu power up iom-2 interface clocking is provided ar activate request info 2 received arl activate request loop loop a closed cvr far-end-code-violation after each multi-frame the receipt of at least one illegal code violation is indicated six times. this function must be enabled by setting the rcve- bit in the mon-8 configuration register. ail activate indication loop loop a activated ai8 activate indication with priority class 8 info 4 received, d-channel priority is 8 or 9. ai10 activate indication with priority class 10 info 4 received, d-channel priority is 10 or 11. dc deactivate confirmation clocks will be disabled, (in te), quiescent state
psb 2115 psf 2115 operational description semiconductor group 199 11.97 s/t-interface signals i0 info 0 i1 info 1 i3 info 3 it pseudo-ternary pulses at 2 khz frequency (alternating, tm1) pseudo-ternary pulses at 96 khz frequency (alternating, tm2) states te/lt-t mode f3 power down this is the deactivated state of the physical protocol. the received line awake unit is active. in te mode, clocks are disabled if the cfs bit of the ipac configuration register is set to 1. f3 power up this state is similar to f3 power down. the state is invoked by a c/i command tim = 0000 (or du static low). after the subsequent activation of the clocks the power up message is output. f3 pending deactivation the ipac reaches this state after receiving info0 (from states f5 to f8) from f6 and f7 via f5/8. from this state an activation is only possible from the line (transition f3 pend. deact. to f5 unsynchronized). the power down state may be reached only after receiving di. f4 pending activation activation has been requested from the terminal, info 1 is transmitted, info 0 is still received, power up is transmitted in the c/i channel. this state is stable: timer t3 (i.430) is to be implemented in software. f5/8 unsynchronized at the reception of any signal from the nt, the ipac ceases to transmit info 1, adapts its receiver circuit, and awaits identification of info 2 or info 4. this state is also reached after the ipac has lost synchronism in the states f6 or f7 respectively.
psb 2115 psf 2115 operational description semiconductor group 200 11.97 f6 synchronized when the ipac receives an activation signal (info 2), it responds with info 3 and waits for normal frames (info 4). f7 activated this is the normal active state with the layer 1 protocol activated in both directions. from state f6 synchronized, state f7 is reached almost 0.5 ms after reception of info 4. f7 slip detected when a slip is detected between the s/t-interface clocking system and the iom-2 interface clocks (phase wander greater than 50 m s, data may be disturbed, or 25 m s if programmed in the mon-8 configuration register) the ipac enters this state, synchronizing again the internal buffer. after 0.5 ms this state is left again (only possible in lt-t mode). unconditional states te/lt-t mode loop a closed on activate request loop command, info 3 is sent by the line transmitter internally to the line receiver (info0 is transmitted to the line). the receiver is not yet synchronized. loop a activated the receiver is synchronized on info 3 which is looped back internally from the transmitter. data may be sent. the indication ail is output to indicate the activated state. when the s/t line awake detector, which is switched to the line, detects an incoming signal, this is indicated by rsy. test mode 1 single alternating pulses are sent on the s/t-interface (2 khz repetition rate) test mode 2 continuous alternating pulses are sent on the s/t-interface (96 khz)
psb 2115 psf 2115 operational description semiconductor group 201 11.97 reset state a hardware or software reset (res) forces the ipac to an idle state where the analog components are disabled (transmission of info0) and the s/t line awake detector is inactive. thus activation from the nt is not possible. clocks are still supplied and the outputs are in a low impedance state.
psb 2115 psf 2115 operational description semiconductor group 202 11.97 3.6.4 state machine lt-s mode 3.6.4.1 lt-s mode state diagram figure 95 state transition diagram in lt-s mode notes: 1. ard stands for ar or arl 2. tmi = tm1 or tm2 itd09696 i4 i3 i3 i2 g2 pend. act. i0 i0 g1 deactivated wait for dr di dr * i0 i0 i0 dr tim g4 pend. deact. i2 i3 di dc ar ai reset tim res * i0 test mode i tim tmi * it dr rst any state dc res dr dc tmi dr dr dr dr i0 or 32 ms dc i3 ard 1) 1) ard ard 1) cmd. ind. state in out iom s/t dc ard dc ard g3 activated ard dc g2 lost framing i3 i3 r i x i r rsy state any 2) i0
psb 2115 psf 2115 operational description semiconductor group 203 11.97 3.6.4.2 lt-s mode transition criteria the transition criteria used by the ipac are described in the following sections. they are grouped into: C c/i commands C pin states C events on the s/t-interface. c/i commands ar activation request. this command is used to start an exchange initiated activation. arl activation request loop. the ipac is requested to operate an analog loop- back close to the s/t-interface. dc deactivation confirmation. transfers the lt-s into a deactivated state in which it can be activated from a terminal (detection of info 0 enabled). dr deactivation request. initiates a complete deactivation from the exchange side by transmitting info 0. unconditional command. res please refer to section 3.6.3.2 (c/i command description) for details. tm1 test mode 1. transmission of single pulses on the s/t-interface. the pulses are transmitted with alternating polarity at a frequency of 2 khz. tm1 is an unconditional command. tm2 test mode 2. transmission of continuous pulses on the s/t-interface. the pulses are sent with alternating polarity at a rate of 96 khz. tm2 is an unconditional command. pin states pin-res pin reset. please refer to section 3.6.3.2 (pin states). s/t-interface events i0 info 0 detected i0 level detected (signal different to i0) i3 info 3 detected i3 any info other than info 3
psb 2115 psf 2115 operational description semiconductor group 204 11.97 3.6.4.3 transmitted signals and indications in lt-s mode the following signals and indications are issued on the iom-2 and s/t-interface. c/i indications s/t-interface signals i0 info 0 i2 info 2 i4 info 4 it pseudo ternary pulses at 2-khz frequency (tm1). pseudo ternary pulses at 96-khz frequency (tm2). abbreviation indication (upstream) lt-s mode remark tim timing interim indication during deactivation procedure rsy resynchronizing receiver is not synchronous ar activate request info 0 received from terminal. activation proceeds. cvr far-end-code-violation after the receipt of at least one illegal code violation cvr is indicated six times. this function must be enabled by setting the rcve- bit in the mon-8 configuration register. ai activate indication synchronous receiver, i.e. activation completed. di deactivate indication timer (32 ms) expired or info 0 received after deactivation request
psb 2115 psf 2115 operational description semiconductor group 205 11.97 3.6.4.4 states lt-s mode g1 deactivated the ipac is not transmitting. there is no signal detected on the s/t-interface, and no activation command is received in the c/i channel. g2 pending activation as a result of an info 0 detected on the s/t line or an ard command, the ipac begins transmitting info 2 and waits for reception of info 3. the timer to supervise reception of info 3 is to be implemented in software. in case of an arl command, loop 2 is closed. g3 activated normal state where info 4 is transmitted to the s/t-interface. the ipac remains in this state as long as neither a deactivation nor a test mode is requested, nor the receiver loses synchronism. when receiver synchronism is lost, info 2 is sent automatically. after reception of info 3, the transmitter keeps on sending info 4. g2 lost framing this state is reached when the ipac has lost synchronism in the state g3 activated. g4 pending deactivation this state is triggered by a deactivation request dr. it is an unstable state: indication di (state g4 wait for dr.) is issued by the ipac when: either info0 is received, or an internal timer of 32 ms expires. g4 wait for dr final state after a deactivation request. the ipac remains in this state until a response to di (in other words dc) is issued. test mode 1 single alternating pulses are sent on the s/t-interface (2-khz repetition rate). test mode 2 continuous alternating pulses are sent on the s/t-interface (96 khz).
psb 2115 psf 2115 operational description semiconductor group 206 11.97 3.6.5 state machine intelligent nt mode 3.6.5.1 intelligent nt mode state diagram figure 96 nt mode state diagram itd09697 g2 wait for aid i2 i3 i3 i2 g2 pend. act. i0 * g1 i0 detected i0 i0 g1 deactivated g4 wait for dr di dr * i0 i0 i0 dr tim g4 pend. deact. g3 activated i4 i3 i3 i2 g2 lost framing rsy di dc ar dc ar ard ai ard ai aid aid ard s/t u g3 lost framing i2 * rsy rsy reset tim res * i0 test mode i tim tmi * it dr rst any state dc res dr dc tmi dr dr dr dr dr i0 or 32 ms dc ard i3 ard 1) 1) ard 1) 1) ard ard 1) cmd. ind. state in out iom s/t i3 ard 1) aid 2) rsy 2) aid i3 i3 ard 1) aid 2) dr rsy , rsy i x i r r any state & & i0 notes: 1. ard = ar or arl 2. aid = ai or ail
psb 2115 psf 2115 operational description semiconductor group 207 11.97 3.6.5.2 intelligent nt mode transition criteria the transition criteria used by the ipac are described in the following sections. they are grouped into: Cc/i commands Cpin states Cevents or the s/t-interface. c/i commands ar activation request. this command is used to start an exchange initiated activation. arl activation request loop. the ipac is requested to operate an analog loop- back close to the s/t-interface. ai activation indication. confirms that the u-interface is fully transparent, on d-channel data transfer is allowed. ail activation indication loop. dc deactivation confirmation. transfers the nt into a deactivated state in which it can be activated from a terminal (detection of info 0 enabled). dr deactivation request. initiates a complete deactivation from the exchange side by transmitting info 0. unconditional command. res please refer to section 3.6.3.2 (c/i commands) for details. rsy resynchronizing. the u-interface has not obtained or lost synchronization. info 2 is transmitted consequently by the ipac. tm1 test mode 1. transmission of single pulses on the s/t-interface. the pulses are transmitted with alternating polarity at a frequency of 2 khz. tm1 is an unconditional command. tm2 test mode 2. transmission of continuous pulses on the s/t-interface. the pulses are sent with alternating polarity at a rate of 96 khz. tm2 is an unconditional command.
psb 2115 psf 2115 operational description semiconductor group 208 11.97 pin states pin-res pin reset. please refer to section 3.6.3.2 (pin states) for details. s/t-interface events i0 info 0 detected i0 level detected (any signal different to i0) i3 info 3 detected i3 any info other than info 3. 3.6.5.3 transmitted signals and indications in intelligent nt mode the following signals and indications are issued on the iom-2 and s/t-interface. c/i indications s/t-interface signals i0 info 0 i2 info 2 i4 info 4 it pseudo ternary pulses at 2-khz frequency (tm1). pseudo ternary pulses at 96-khz frequency (tm2). abbreviation indication (upstream) nt mode remark tim timing s transceiver requires clock pulses rsy resynchronizing receiver is not synchronous ar activate request info 0 received cvr far-end-code-violation after each multi-frame the receipt of at least one illegal code violation is indicated six times. this function must be enabled by setting the rcve- bit in the mon-8 configuration register. ai activate indication synchronous receiver di deactivate indication timer (32 ms) expired or info 0 received after deactivation request
psb 2115 psf 2115 operational description semiconductor group 209 11.97 3.6.5.4 states intelligent nt mode g1 deactivated the ipac is not transmitting. no signal is detected on the s/t-interface, and no activation command is received in c/i channel. di is output in the normal deactivated state, and tim is output as a first step when an activation is requested from the s/t- interface. g1 i0 detected an info 0 is detected on the s/t-interface, translated to an activation request indication in the c/i channel. the ipac is waiting for an ar command, which normally indicates that the transmission line upstream (usually a two-wire u interface) is synchronized. g2 pending activation as a result of the ard command, and info 2 is sent on the s/t-interface. info 3 is not yet received. in case of arl command, loop 2 is closed. g2 wait for aid info 3 was received, info 2 continues to be transmitted while the ipac waits for a switch-through command aid from the device upstream. g3 activated info 4 is sent on the s/t-interface as a result of the switch through command aid: the b and d-channels are transparent. on the command ail, loop 2 is closed. g2 lost framing s/t this state is reached when the ipac has lost synchronism in the state g3 activated. g3 lost framing u on receiving an rsy command which usually indicates that synchronization has been lost on the two-wire u interface, the ipac transmits info 2. g4 pending deactivation this state is triggered by a deactivation request dr, and is an unstable state. indication di (state g4 wait for dr) is issued by the ipac when: either info0 is received or an internal timer of 32 ms expires.
psb 2115 psf 2115 operational description semiconductor group 210 11.97 g4 wait for dr final state after a deactivation request. the ipac remains in this state until an acknowledgment to di (dc) is issued. test mode 1 single alternating pulses are sent on the s/t-interface (2-khz repetition rate). test mode 2 continuous alternating pulses are sent on the s/t-interface (96 khz). 3.6.6 command/indicate channel structure 4 bit wide, located at bit positions 26-29 in each time-slot (assuming that bit 0 is the first bit). verification double last-look criterion. a new command or indication will be recognized as valid after it has been detected in two successive iom frames. codes both commands and indications depend on the ipac mode and the data direction. the table below presents all defined c/i codes. a command needs to be applied continuously until the desired action has been initiated. indications are strictly state orientated. refer to the state diagrams in the previous sections for commands and indications applicable in various states.
psb 2115 psf 2115 operational description semiconductor group 211 11.97 1) in lt-t mode only c/i codes code lt-s nt te/lt-t in out in out in out 0000dr tim dr tim tim dr 0001res C res C res res 0010tm1 C tm1 C tm1 tm1 0011tm2 C tm2 C tm2 tm2 slip 1) 0100C rsy rsy rsy C rsy 0101C C C C C C 0110C C C C C C 0111C C C C C pu 1000ar ar ar ar ar8 ar 1001C C C C ar10 C 1010arl C arl C arl arl 1011C cvr C cvr C cvr 1100C ai ai ai C ai8 1101C C C C C ai10 1110C C ail C C ail 1111dc di dc di di dc ai activation indication ai8 activation indication with high priority ai10 activation indication with low priority ail activation indication loop ar activation request ar8 activation request with high priority ar10 activation request with low priority arl activation request loop cvr code violation received dc deactivation confirmation di deactivation indication dr deactivation request pu power-up res reset rsy resynchronizing slip iom frame slip tim timer tm1 test mode 1 (2-khz signal) tm2 test mode 2 (96-khz signal)
psb 2115 psf 2115 operational description semiconductor group 212 11.97 3.6.7 example of activation/deactivation an example of an activation/deactivation of the s interface, with the time relationships mentioned in the previous chapters, is shown in figure 97 , in the case of an ipac in te and lt-s modes. figure 97 example of activation/deactivation
psb 2115 psf 2115 detailed register description semiconductor group 213 11.97 4 detailed register description 4.1 register address arrangement the ipac comprises the basic functionality of the isac-s peb 2086 and of the hscx- te psb 21525 with additional dma capability. therefore the ipac register set is very similar to these two devices, which allows for easy adaptation of existing host software. as shown in figure 98 the b-channel registers are located in the range from 00h to 73h whereas the d-channel specific registers are available from 80h to bah. as some of the registers provide similar functionality for b-channel and d-channel operation, the nomenclature indicates to which functional block the register is related to (e.g. rfifob = receive fifo b-channel, rfifod = receive fifo d-channel). the ipac specific registers for configuration, interrupt handling, pcm and auxiliary interface are located at the upper address range starting at c0h. figure 98 register mapping
psb 2115 psf 2115 detailed register description semiconductor group 214 11.97 76543210 b-channel registers rfifob b-channel receive fifo rd (00-1f/40-5f) xfifob b-channel transmit fifo wr (00-1f/40-5f) istabrmerpf0xpr0000 rd (20/60) maskb rme rpf 0 xpr 0000 wr (20/60) starb xdov xfw xrep rfr rli cec xac afi rd (21/61) cmdrb rmc rhr xrep 0 xtf 0 xme xres wr (21/61) modeb mds1 mds0 adm cft rac 0 0 tlp rd/wr (22/62) reserved rd/wr (23/63) exirb xmr xdu exe 0 rfo 0 rfs 0 0 rd (24/64) rbclb rbc7 rbc0 rd (25/65) rah1 rah1 0 0 wr (26/66) rah2 rah2 0 0 wr (27/67) rstab vfr rdo crc rab ha1 ha0 c/r la rd (27/67) ral1 ral1 rd/wr (28/68) ral2 ral2 wr (29/69) rhcrb rhcr rd (29/69) xbcl xbc7 xbc0 wr (2a/6a) reserved rd/wr (2b/6b) ccr2 soc 0 xcs0 rcs0 txd 0 rie div rd/wr (2c/6c) rbchb dma 0 0 ov rbc11 rbc8 rd (2d/6d)
psb 2115 psf 2115 detailed register description semiconductor group 215 11.97 xbch dma 0 0 xc xbc11 xbc8 wr (2d/6d) reserved rd (2e/6e) rlcr rc 0 rl5 rl0 wr (2e/6e) ccr1 pu sc 0 0 itf 0 1 0 rd/wr (2f/6f) tsax tsnx xcs2 xcs1 wr (30/70) tsar tsnr rcs2 rcs1 wr (31/71) xccr xbc7 xbc0 wr (32/72) rccr rbc7 rbc0 wr (33/73) d-channel registers rfifod d-channel receive fifo rd (80 - 9f) xfifod d-channel transmit fifo wr (80 - 9f) istad rme rpf rsc xpr tin cic sin tin2 rd (a0) maskd rme rpf rsc xpr tin cic sin tin2 wr (a0) stard xdov xfw xrnr rrnr mbr mac1 -- mac0 rd (a1) cmdrd rmc rres rnr sti xtf xif xme xres wr (a1) moded mds2 mds1 mds0 tmd rac dim2 dim1 dim0 rd/wr (a2) timr1 cnt value rd/wr (a3) exird xmr xdu pce rfo sov mos saw wov rd (a4) xad1 wr (a4) xad2 wr (a5) rbcld rbc7 rbc0 rd (a5) sapr rd (a6) sap1 sapi1 cri 0 wr (a6) 76543210
psb 2115 psf 2115 detailed register description semiconductor group 216 11.97 sap2 sapi2 mcs 0 wr (a7) rstad rda rdo crc rab sa1 sa0 c/r ta rd (a7) tei1 tei1 ea wr (a8) tei2 tei2 ea wr (a9) rhcrd rd (a9) rbchd xac -- -- ov rbc11 rbc8 rd (aa) star20000wfa0trecsdet rd (ab) spcr spu sdl spm tlp c1c1 c1c0 c2c1 c2c0 rd/wr (b0) cir0 0 bas codr0 cic0 cic1 rd (b1) cix0 rss bac codx0 1 1 wr (b1) mor0 rd (b2) mox0 wr (b2) cir1 codr1 mr1 mx1 rd (b3) cix1 codx1 1 1 wr (b3) mor1 rd (b4) mox1 wr (b4) c1r rd/wr (b5) c2r rd/wr (b6) stcr tsf tba2 tba1 tba0 st1 st0 sc1 sc0 wr (b7) b1cr rd (b7) b2cr rd (b8) adf1 wtc1 wtc2 ci1e 0 csel2 csel1 csel0 itf wr (b8) reserved10000000 rd/wr (b9) 76543210
psb 2115 psf 2115 detailed register description semiconductor group 217 11.97 note: the mon-8 registers for layer 1 are not directly accessible to the host but they are controlled via the monitor channel. these registers are described in chapter 2.4.4 . mosr mdr1 mer1 mda1 mab1 mdr0 mer0 mda0 mab0 rd (ba) mocr mre1 mrc1 mie1 mxc1 mre0 mrc0 mie0 mxc0 wr (ba) general ipac registers conf amp cfs tem pds idh sgo ods iof rd/wr (c0) ista int1 int0 icd exd ica exa icb exb rd (c1) mask int1 int0 icd exd ica exa icb exb wr (c1) id rd (c2) acfg od7 od6 od5 od4 od3 od2 el1 el0 rd/wr (c3) aoe oe7 oe6 oe5 oe4 oe3 oe2 0 0 rd/wr (c4) arx ar7 ar6 ar5 ar4 ar3 ar2 0 0 rd (c5) atx at7 at6 at5 at4 at3 at2 0 0 wr (c5) pita1 ena dudd 0 tnrx rd/wr (c6) pita2 ena dudd 0 tnrx rd/wr (c7) pota1 ena dudd 0 tntx rd/wr (c8) pota2 ena dudd sres tntx rd/wr (c9) pcfg dps acl led pld fbs csl2 csl1 csl0 rd/wr (ca) scfg pri txd tlen tslt rd/wr (cb) timr2 tmd 0 cnt rd/wr (cc) 76543210
psb 2115 psf 2115 detailed register description semiconductor group 218 11.97 4.2 b-channel registers 4.2.1 rfifob - receive fifo b-channel (read)) interrupt controlled data transfer (interrupt mode, selected by xbch:dma=0): up to 64 bytes of receive data can be read from the rfifob following an rpf or an rme interrupt. rpf interrupt: exactly 64 bytes to be read. rme interrupt: number of bytes to be determined by reading the rbclb, rbchb registers. although the address range covers only 32 byte (similar to hscx-te) the fifo depth is 64 byte as the read address does not need to be reprogrammed. addresses within the address space of the fifos are interpreted equally, i.e. the actual data byte can be accessed with any address within the valid scope. dma controlled data transfer (dma mode, selected by xbch:dma=1): if the rfifob contains 64 bytes, the ipac autonomously requests a block data transfer by activating the drqra/b-line until the 63rd read cycle is finished. this forces the dma-controller to continuously perform bus cycles until 64 bytes are transferred from the ipac to the system memory (dma controller mode: demand transfer, level triggered). if the rfifob contains less than 64 bytes (one short frame or the last bytes of a long frame) the ipac requests a block data transfer depending on the contents of the rfifob according to the following table: additionally an rme interrupt is issued after the last byte has been transferred. as a result, the dma-controller may transfer more bytes than actually valid in the current 70 rfifob receive data (00-1f/40-5f) rfifob contents (bytes) dma transfer (bytes) (1), 2, 3 4 4 - 7 8 8 - 15 16 16 - 31 32 32 - 64 64
psb 2115 psf 2115 detailed register description semiconductor group 219 11.97 received frame. the valid byte count must therefore be determined by reading the registers rbchb, rbclb following the rme interrupt. the corresponding drqra/b pin remains high as long as the rfifob requires data transfers. it is deactivated upon the rising edge of the 63rd dma transfer or, if n < 64 or n is the remainder of a long frame, upon the falling edge of the last dma transfer. if n 3 64 and the dma controller does not perform the 64th dma cycle, the drqra/b line will go high again as soon as cs goes high, thus indicating further bytes to fetch. 4.2.2 xfifob - transmit fifo b-channel (write)) interrupt controlled data transfer (interrupt mode, selected by xbch:dma=0): up to 64 bytes of transmit data can be written to the xfifob following an xpr interrupt. dma controlled data transfer (dma mode, selected by xbch:dma=1): prior to any data transfer, the actual byte count of the frame to be transmitted must be written to the xbch, xbcl registers by the user. 1 byte: xbcl = 0 n bytes: xbcl = n - 1 if data transfer is then initiated via the cmdrb register (command xtf or xif), the ipac autonomously requests the correct amount of block data transfers (n 64 + remainder, n = 0, 1, ). the corresponding drqta/b pin remains high as long as the xfifob requires data transfers. it is deactivated upon the rising edge of wr in the dma transfer 63 or n-1 respectively. the dma controller must take care to perform the last dma transfer. if it is missing, the drqta/b line will go active again when cs is raised. although the address range covers only 32 byte (similar to hscx-te) the fifo depth is 64 byte as the read address does not need to be reprogrammed. addresses within the address space of the fifos are interpreted equally, i.e. the actual data byte can be accessed with any address within the valid scope. 70 xfifob transmit data (00-1f/40-5f)
psb 2115 psf 2115 detailed register description semiconductor group 220 11.97 4.2.3 istab - interrupt status register for b-channel (read) value after reset: 00 h r me receive message end one message up to 64 bytes or the last part of a message greater then 64 bytes has been received and is now available in the rfifob. the message is complete! the actual message length can be determined reading the rbchb, rbclb registers. additional information is available in the rstab register. rpf receive pool full a block of 64 bytes of a message is stored in the rfifob. the message is not yet completed! note: this interrupt is only generated in interrupt mode, not in dma mode. xpr transmit pool ready a data block of up to 64 bytes can be written to the transmit fifo. to generate edges at the int pin it is necessary to mask all interrupts at the end of the interrupt service routine and write back the old mask to the mask register. 4.2.4 maskb - mask register for b-channel (write) value after reset: 00 h (all interrupts enabled) each interrupt source can be selectively masked by setting the respective bit in maskb (bit positions corresponding to istab register). masked interrupts are not indicated when reading istab. instead, they remain internally stored and will be indicated after the respective maskb bit is reset. 70 istabrmerpf0xpr0000 (20/60) 70 maskb rme rpf 0 xpr 0000 (20/60)
psb 2115 psf 2115 detailed register description semiconductor group 221 11.97 4.2.5 starb - status register for b-channel (read) value after reset: 48 h xdov transmit data overflow more than 64 bytes have been written to the xfifob. xfw transmit fifo write enable data can be written to the xfifob. note: xfw is valid if cec = 0 only! xrep transmission repeat contains the read back value of the corresponding command bit cmdrb:xrep. rfr receive fifo read enable a 1 indicates, that valid data is in the rfifob and read access is enabled. rfr is set with the rme- or rpf-interrupt and reset when executing the rmc-command. rli receive line inactive neither flags as interframe time fill nor frames are received via the receive line. cec command executing 0 no command is currently executed, the cmdrb register can be written to. 1 a command (written previously to cmdrb) is currently executed, no further command can be temporarily written via cmdrb register. note: cec will be active at most 2.5 transmit clock periods. if the ipac is in power down mode cec will stay active. xac transmitter active a 1 indicates, that the transmitter is currently active. in bus mode the transmitter is considered active also when it waits for bus access. 70 starb xdov xfw xrep rfr rli cec xac afi (21/61)
psb 2115 psf 2115 detailed register description semiconductor group 222 11.97 afi additional frame indication a 1 indicates, that one or more completely received frames or the last part of a frame are in the cpu inaccessible part of the rfifob. in combination with the bit starb:rfr multiple frames can be read out of the rfifob without interrupt control. 4.2.6 cmdrb - command register for b-channel (write) value after reset: 00 h note: the maximum time between writing to the cmdrb register and the execution of the command is 2.5 clock cycles. therefore, if the cpu operates with a very high clock in comparison with the ipacs clock, its recommended that the cec bit of the starb register is checked before writing to the cmdrb register to avoid any loss of commands. rmc receive message complete confirmation from cpu to ipac, that the actual frame or data block has been fetched following an rpf or rme interrupt, thus the occupied space in the rfifob can be released. note: in dma mode this command is only issued once after an rme interrupt. the ipac does not generate further dma requests prior to the reception of this command. rhr reset hdlc receiver all data in the rfifob and the hdlc receiver is deleted. xrep transmission repeat in extended transparent mode 0, 1 : together with xtf and xme set (write 2 a h to cmdrb), the ipac repeatedly transmits the contents of the xfifob (1 64 bytes) without hdlc framing fully transparent, i.e. without flag, crc insertion, bit stuffing. 70 cmdrb rmc rhr xrep 0 xtf 0 xme xres (21/61)
psb 2115 psf 2115 detailed register description semiconductor group 223 11.97 the cyclic transmission continues until the command xres is executed or the bit xrep is reset. the interframe timefill pattern is issued afterwards. when resetting xrep, data transmission is stopped after the next xfifob-cycle is completed, the xres command terminates data transmission immediately . note: modeb:cft must be set to 0 when using cyclic transmission. x tf transmit transparent frame after having written up to 64 bytes to the xfifob, this command initiates the transmission of a transparent frame. an opening flag sequence is automatically added to the data by the ipac (only in non-automode, transparent mode 0,1). no opening flag sequence is generated in extended transparent mode 0, 1. xme transmit message end (used in interrupt mode only!) indicates, that the data block written last to the transmit fifo completes the actual frame. the ipac can terminate the transmission operation properly by appending the crc and the closing flag sequence to the data. note: in dma mode the xme must not be used. xres transmit reset the content of the xfifob is deleted and idle is transmitted. this command can be used by the cpu to abort a frame currently in transmission. after setting xres an xpr interrupt is generated in every case. 4.2.7 modeb - mode register for b-channel (read/write) value after reset: 00 h mds1, mds0 mode select the operating mode of the hdlc controller is selected. 01 non-auto mode 10 transparent mode 11 extended transparent mode 70 modeb mds1 mds0 adm cft rac 0 0 tlp (22/62)
psb 2115 psf 2115 detailed register description semiconductor group 224 11.97 adm address mode the meaning of this bit varies depending on the selected operating mode: ? non-auto mode defines the length of the hdlc address field. 0 8-bit address field 1 16-bit address field in transparent modes, this bit differentiates between two sub-modes: ? transparent mode 0 transparent mode 0; no address recognition. 1 transparent mode 1; high byte address recognition. ? extended transparent mode; without hdlc framing. 0 extended transparent mode 0; received data in ral1. 1 extended transparent mode 1; received data in rfifob and ral1. note: in extended transparent modes, the rac bit must set to 0 to enable fully transparent reception! cft continuous frame transmission 1 when cft is set, the xpr interrupt is generated immediately after the cpu accessible part of xfifob is copied into the transmitter section. 0 otherwise the xpr interrupt is delayed until the transmission is completed (d- channel arbiter). rac receiver active via rac the hdlc receiver can be activated/deactivated. 0 hdlc receiver inactive 1 hdlc receiver active in extended transparent modes this bit must be reset to enable fully transparent reception! tlp test loop when tlp is set, input and output of the hdlc controller are internally connected, i.e. transmitter channel a to receiver channel a and transmitter channel b to receiver channel b. the receive b-channels on dd are disabled (data is ignored) and the transmit b-channels on du remain active (data is transmitted).
psb 2115 psf 2115 detailed register description semiconductor group 225 11.97 4.2.8 exirb - extended interrupt register for b-channel (read) value after reset: 00 h xmr transmit message repeat the transmission of the last message has to be repeated. xdu/exe transmit data underrun/extended transmission end the actual frame has been aborted with idle, because the xfifob holds no further data, but the frame is not yet complete! in extended transparent mode, this bit indicates the transmission-end condition. note: it is not possible to send transparent-frames when a xmr or xdu interrupt is indicated. rfo receive frame overflow one frame could not be stored due to occupied rfifob (i.e. whole frame has been lost). this interrupt can be used for statistical purposes and indicates, that the cpu does not respond quickly enough to an incoming rpf, or rme interrupt. rfs receive frame start this is an early receiver interrupt activated after the start of a valid frame has been detected, i.e. after a valid address check in operation modes providing address recognition, otherwise after the opening flag (transparent mode 0), delayed by two bytes. after an rfs interrupt, the contents of ? rhcrb ?ral1 ? rstab C bit 3-0 are valid and can be read by the cpu. this interrupt must be enabled setting the rie bit in ccr2. 70 exirb xmr xdu exe 0 rfo 0 rfs 0 0 (24/64)
psb 2115 psf 2115 detailed register description semiconductor group 226 11.97 4.2.9 rbclb - receive byte count low for b-channel (read) value after reset: (not defined) together with rbchb (bits rbc11 C rbc8), the length of the actual received frame (1 4095 bytes) can be determined. these registers must be read by the cpu following an rme interrupt. 4.2.10 rah1 - receive address byte high register 1 (write) value after reset: (not defined) in operating modes that provide high byte address recognition, the high byte of the received address is compared with the individual programmable values in rah1, or rah2. 4.2.11 rah2 - receive address byte high register 2 (write) value after reset: (not defined) rah2 value of second individual programmable high address byte. note: rah1, rah2 registers are used in non-auto operating mode when a 2-byte address field has been selected (modeb.adm = 1) and in the transparent mode 1. if a 1-byte address field is selected, rah1 and rah2 must be set to 00 h . 70 rbclb rbc7 rbc0 (25/65) 70 rah1 rah1 0 0 (26/66) 710 rah2 rah2 0 0 (27/67)
psb 2115 psf 2115 detailed register description semiconductor group 227 11.97 4.2.12 rstab - receive status register for b-channel (read) value after reset: (not defined) vfr valid frame determines whether a valid frame has been received. 1 valid 0 invalid an invalid frame is either ? a frame which is not an integer multiple of 8 bits (n 8 bits) in length (e.g. 25 bit), or ? a frame which is too short depending on the selected operation mode via modeb (mds1, mds0, adm) as follows: C non-auto mode (16-bit address): 4 bytes C non-auto mode (8-bit address): 3 bytes C transparent mode 1:3 bytes. C transparent mode 0:2 bytes. note: shorter frames are not reported. rdo receive data overflow a data overflow has occurred within the actual frame. caution: data loss because the cpu did not serve rme or rpf interrupt in time. crc crc compare/check 0 crc check failed; received frame contains errors. 1 crc check o.k.; received frame is error-free. rab receive message aborted the received frame was aborted from the transmitting station. according to the hdlc protocol, this frame must be discarded by the cpu. 70 rstab vfr rdo crc rab ha1 ha0 c/r la (27/67)
psb 2115 psf 2115 detailed register description semiconductor group 228 11.97 ha1, ha0 high byte address compare; significant only if 2-byte address mode has been selected. in operating modes which provide high byte address recognition, the ipac compares the high byte of a 2-bytes address with the contents of two individual programmable registers (rah1, rah2) and the fixed values fe h and fc h (group address). depending on the result of this comparison, the following bit combinations are possible: 10 rah1 has been recognized 00 rah2 has been recognized 01 group address has been recognized note: if rah1, rah2 contain the identical values, the combination 00 will be omitted. c/r command/response; significant only, if 2-byte address mode has been selected. value of the c/r bit (bit of high address byte) in the received frame. 0 ... response received 1 ... command received la low byte address compare; not significant in transparent and extended transparent operating modes. the low byte address of a 2-byte address field, or the single address byte of a 1-byte address field is compared with two programmable registers (ral1, ral2) 0 ral2 has been recognized 1 ral1 has been recognized according to the x.25 lapb protocol, ral1 is interpreted as command and ral2 interpreted as response. note: rstab corresponds to the last received hdlc frame; it is duplicated into rfifob for every frame (last byte of frame). if several frames are contained in the rfifo the corresponding status information for each frame should be evaluated from the fifo contents (last byte) as rstab only refers to last frame in the fifo.
psb 2115 psf 2115 detailed register description semiconductor group 229 11.97 4.2.13 ral1 - receive address byte low register 1 (read/write) value after reset: (not defined) the general function (read/write) and the meaning or contents of this register depends on the selected operating mode: C non-auto mode (16-bit address) C write only : ral1 can be programmed with the value of the first individual low address byte. C non-auto mode (8-bit address) C write only : according to x.25 lapb protocol, the address in ral1 is recognized as command address. C transparent mode 1 (high byte address recognition) C read only : ral1 contains the byte following the high byte of the address in the receive frame (i.e. the second byte after the opening flag). C transparent mode 0 (no address recognition) C read only : ral1 contains the first byte after the opening flag (first byte of received frame). C extended transparent modes 0, 1 C read only : ral1 contains the actual data byte currently assembled at the dd pin, bypassing the hdlc receiver (fully transparent reception without hdlc framing). 4.2.14 ral2 - receive address byte low register 2 (write) value after reset: (not defined) value of the second individual programmable low address byte. if a one byte address field is selected, ral2 is recognized as response according to x.25 lapb protocol. 70 ral1 ral1 (28/68) 70 ral2 ral2 (29/69)
psb 2115 psf 2115 detailed register description semiconductor group 230 11.97 4.2.15 rhcrb - receive hdlc control register for b-channel (read) value after reset: (not defined) value of the hdlc control field corresponds to the last received frame. note: rhcrb is duplicated into rfifob for every frame. 4.2.16 xbcl - transmit byte count low (write) value after reset: (not defined) together with xbch (bits xbc11 ... xbc8) this register is used in dma mode only, to program the length (1 ... 4095 bytes) of the next frame to be transmitted. this allows the ipac to request the correct amount of dma cycles after an xtf command via cmdrb. 70 rhcrb rhcr (29/69) mode contents of rhcr non-auto mode, 1-byte address 2 nd byte after flag non-auto mode, 2-byte address 3 rd byte after flag transparent mode 1 3 rd byte after flag transparent mode 0 2 nd byte after flag 70 xbcl xbc7 xbc0 (2a/6a)
psb 2115 psf 2115 detailed register description semiconductor group 231 11.97 4.2.17 ccr2 - channel configuration register 2 (read/write) value after reset: 00 h soc special output control 0 b-channel data is transmitted on du, received on dd pin (normal case) 1 b-channel data is transmitted on dd, received on du pin x cs0, rcs0 transmit/receive clock shift, bit 0 together with bits xcs2, xcs1 (rcs2, rcs1) in tsax (tsar) the clock shift relative to the frame synchronization signal of the transmit (receive) time-slot can be adjusted. a clock shift of 0 7 bits is programmable. txd transmitter disable 0 ... du pin is enabled during the programmed timeslot 1 ... du pin is disabled (high impedant) during the programmed timeslot note: this mode can be used to deactivate the b-channel timeslot in push-pull configuration. rie receive frame start interrupt enable when rie is set, the rfs interrupt (via exirb) is enabled. div data inversion if enabled (div=1), data is transmitted and received inverted. this feature is described in detail in chapter 2.1.12 . note: this option is only valid if nrz data encoding is selected (ccr1:sc=0). 70 ccr2 soc 0 xcs0 rcs0 txd 0 rie div (2c/6c)
psb 2115 psf 2115 detailed register description semiconductor group 232 11.97 4.2.18 rbchb - received byte count high for b-channel (read) value after reset: 000xxxxx dma dma mode contains the read back value from register xbch, which selects between interrupt or dma mode. ov counter overflow more than 4095 bytes received! the received frame exceeded the byte count in rbc11 rbc0. rbc11 rbc8 receive byte count (most significant bits) together with rbclb (bits rbc7 rbc0) the length of the received frame can be determined. 4.2.19 xbch - transmit byte count high (write) value after reset: 0000xxxx dma dma mode selects the data transfer mode between the ipac and the host system. 0 ... interrupt controlled data transfer (interrupt mode) 1 ... dma controlled data transfer (dma mode) xc transmit continuously only valid if dma mode is selected (dma=1): if the xc bit is set, the ipac continuously requests for transmit data ignoring the transmit byte count programmed via xbch and xbcl. 730 rbchb dma 0 0 ov rbc11 rbc8 (2d/6d) 730 xbch dma 0 0 xc xbc11 xbc8 (2d/6d)
psb 2115 psf 2115 detailed register description semiconductor group 233 11.97 xbc11-8 transmit byte count (most significant bits) only valid if dma mode is selected (dma=1): together with xbc7-0 the length of the next frame to be transmitted in dma mode is determined (1 ... 4096 bytes). 4.2.20 rlcr - receive length check register (write) value after reset: (not defined) rc receive check (on/off) 0 receive length check feature disabled 1 receive length check feature enabled note: all bytes stored in the rfifob are relevant for the receive length check feature including the receiver status byte. rl receive length the maximum receive length after which data reception is suspended can be programmed here. depending on the value rl programmed via rl5 rl0, the receive length is (rl + 1) 64 bytes! a frame exceeding this length is treated as if it was aborted by the opposite station (rme interrupt, rab bit set). in this case, the receive byte count (rbchb, rbclb) is greater than the programmed receive length. 70 rlcr rc 0 rl5 rl0 (2e/6e)
psb 2115 psf 2115 detailed register description semiconductor group 234 11.97 4.2.21 ccr1 - channel configuration register 1 (read/write) value after reset: 02 h pu switches between power up and power down mode 0 power down (standby) 1 power up (active) note: in order to switch the ipac in power down mode it is necessary to program itf=0 together with pu=0. sc ... serial port configuration 0 nrz data encoding 1 nrzi data encoding itf interframe time fill itf determines the idle state (= no data to send) of the transmit data pin (du) 0 continuous idle sequences are output (du pin remains in the 1 state) 1 continuous flag sequences are output (01111110 bit patterns) note: itf must be set to 0 for power down mode. 4.2.22 tsax - time-slot assignment register transmit (write) value after reset: (not defined) tsnx time-slot number transmit selects one of up 64 possible time-slots (00 h C 3f h ) in which data is transmitted. the number of bits per time-slot can be programmed via xccr. xcs2, xcs1 transmit clock shift, bit 2-1 together with the xcs0 in ccr2, the transmit clock shift can be adjusted. 70 ccr1 pu sc 0 0 itf 0 1 0 (2f/6f) 7210 tsax tsnx xcs2 xcs1 (30/70)
psb 2115 psf 2115 detailed register description semiconductor group 235 11.97 4.2.23 tsar - time-slot assignment register receive (write) value after reset: (not defined) tsnr time-slot number receive defines one of up to 64 possible time-slots (00 h C 3f h ) in which data is received. the number of bits per time-slot can be programmed via rccr. rcs2, rcs1 receive clock shift, bit 2-1 together with bit rcs0 in ccr2, the receive clock shift can be adjusted. 4.2.24 xccr - transmit channel capacity register (write) value after reset: 00 h xbc7 xbc0 transmit bit count, bit 7-0 defines the number of bits to be transmitted with a time-slot: number of bits = xbc + 1. (1 256 bits/time-slot) 4.2.25 rccr - receive channel capacity register (write) value after reset: 00 h rbc7 rbc0 receive bit count, bit 7-0 defines the number of bits to be transmitted with a time-slot: number of bits = rbc + 1. (1 256 bits/time-slot) 70 tsar tsnr rcs2 rcs1 (31/71) 70 xccr xbc7 xbc0 (32/72) 70 rccr rbc7 rbc0 (33/73)
psb 2115 psf 2115 detailed register description semiconductor group 236 11.97 4.3 d-channel registers 4.3.1 rfifod - receive fifo d-channel (read) a read access to any address within the range 80h-9fh gives access to the current fifo location selected by an internal pointer which is automatically incremented after each read access. this allows for the use of efficient moving string type commands by the processor. the rfifod contains up to 32 bytes of received frame. after an istad:rpf interrupt, exactly 32 bytes are available. after an istad:rme interrupt, the number of bytes available can be obtained by reading the rbcld register. 4.3.2 xfifod - transmit fifo d-channel (write) a write access to any address within the range 00-1f h gives access to the current fifo location selected by an internal pointer which is automatically incremented after each write access. this allows for the use of efficient move string type commands by the processor. up to 32 bytes of transmit data can be written to the xfifod following an istad:xpr interrupt. 70 rfifod receive data (80-9f) 70 xfifod transmit data (80-9f)
psb 2115 psf 2115 detailed register description semiconductor group 237 11.97 4.3.3 istad - interrupt status register d-channel (read) value after reset: 00 h rme ... receive message end one complete frame of length less than or equal to 32 bytes, or the last part of a frame of length greater than 32 bytes has been received. the contents are available in the rfifod. the message length and additional information may be obtained from rbchd and rbcld and the rstad register. rpf ... receive pool full a 32-byte block of a frame longer than 32 bytes has been received and is available in the rfifod. the frame is not yet complete. rsc ... receive status change. used in auto mode only a status change in the receiver of the remote station - receiver ready/receiver not ready - has been detected (rr or rnr s-frame). the actual status of the remote station can be read from the stard register (rrnr bit). xpr ... transmit pool ready a data block of up to 32 bytes can be written to the xfifod. an xpr interrupt will be generated in the following cases: ? after an xtf or xif command, when one transmit pool is emptied and the frame is not yet complete ? after an xtf together with an xme command is issued, when the whole transparent frame has been transmitted ? after an xif together with an xme command is issued, when the whole i frame has been transmitted and a positive acknowledgment from the remote station has been received (auto mode). tin ... timer interrupt the internal timer and repeat counter has expired (see timr1 register). cic ... c/i channel change a change in c/i channel 0 or c/i channel 1 (only te mode) has been recognized. the actual value can be read from cir0 or cir1. 70 istad rme rpf rsc xpr tin cic sin tin2 (a0)
psb 2115 psf 2115 detailed register description semiconductor group 238 11.97 sin ... synchronous transfer interrupt when programmed (stcr register), this interrupt is generated to enable the processor to lock on to the iom timing, for synchronous transfers. tin2 ... timer interrupt 2 the internal timer 2 counter has expired (see timr2 register). note: a read of the istad register clears all bits except cic. cic is cleared by reading cir0. 4.3.4 maskd - mask register d-channel (write) value after reset: 00 h (all interrupts enabled) each interrupt source in the istad register can be selectively masked by setting to 1 the corresponding bit in maskd. masked interrupt status bits are not indicated when istad is read. instead, they remain internally stored and pending, until the mask bit is reset to 0. note: in the event of a c/i channel change, cic is set in istad even if the corresponding mask bit in maskd is active, but no interrupt is generated. 70 maskd rme rpf rsc xpr tin cic sin tin2 (a0)
psb 2115 psf 2115 detailed register description semiconductor group 239 11.97 4.3.5 stard - status register d-channel (read) value after reset: 48 h xdov ... transmit data overflow more than 32 bytes have been written in one pool of the xfifod, i.e. data has been overwritten. xfw ... transmit fifo write enable data can be written in the xfifod. this bit may be polled instead of (or in addition to) using the xpr interrupt. xrnr ... transmit rnr. used in auto mode only in auto mode, this bit indicates whether the ipac receiver is in the ready (0) or not ready (1) state. when not ready, the ipac sends an rnr s-frame autonomously to the remote station when an i frame or an s frame is received. rrnr ... receive rnr. used in auto mode only in the auto mode, this bit indicates whether the ipac has received an rr or an rnr frame, this being an indication of the current state of the remote station: receiver ready (0) or receiver not ready (1). mbr ... message buffer ready this bit signifies that temporary storage is available in the rfifod to receive at least the first 16 bytes of a new message. mac1 ... monitor transmit channel 1 active (iom-2 terminal mode only) data transmission is in progress in monitor channel 1. mac0 ... monitor transmit channel 0 active data transmission is in progress in monitor channel 0. 70 stard xdov xfw xrnr rrnr mbr mac1 -- mac0 (a1)
psb 2115 psf 2115 detailed register description semiconductor group 240 11.97 4.3.6 cmdrd - command register (write) value after reset: 00 h rmc ... receive message complete reaction to rpf (receive pool full) or rme (receive message end) interrupt. by setting this bit, the processor confirms that it has fetched the data, and indicates that the corresponding space in the rfifod may be released. rres ... receiver reset hdlc receiver is reset, the rfifod is cleared of any data. in addition, in auto mode, the transmit and receive counters (v(s), v(r)) are reset. rnr ... receiver not ready. used in auto mode only. determines the state of the ipac hdlc receiver. when rnr = 0, a received i or s-frame is acknowledged by an rr supervisory frame, otherwise by an rnr supervisory frame. sti ... start timer the ipac hardware timer is started when sti is set to one. in the internal timer mode (tmd bit, moded register) an s command (rr, rnr) with poll bit set is transmitted in addition. the timer may be stopped by a write to the timr1 register. xtf ... transmit transparent frame after having written up to 32 bytes in the xfifod, the processor initiates the transmission of a transparent frame by setting this bit to 1. the opening flag is automatically added to the message by the ipac. xif ... transmit i frame. used in auto mode only after having written up to 32 bytes in the xfifod, the processor initiates the transmission of an i frame by setting this bit to 1. the opening flag, the address and the control field are automatically added by the ipac. 70 cmdrd rmc rres rnr sti xtf xif xme xres (a1)
psb 2115 psf 2115 detailed register description semiconductor group 241 11.97 xme ... transmit message end by setting this bit to 1 the processor indicates that the data block written last in the xfifod completes the corresponding frame. the ipac terminates the transmission by appending the crc and the closing flag sequence to the data. xres ... transmitter reset hdlc transmitter is reset and the xfifod is cleared of any data. this command can be used by the processor to abort a frame currently in transmission. note: the maximum time between writing to the cmdrd register and the execution of the command is 2.5 dcl clock cycles. during this time no further commands should be written to the cmdrd register to avoid any loss of commands. after an xpr interrupt further data has to be written to the xfifod and the appropriate transmit command (xtf or xif) has to be written to the cmdrd register again to continue transmission, when the current frame is not yet complete (see also xpr in istad). during frame transmission, the 0-bit insertion according to the hdlc bit-stuffing mechanism is done automatically.
psb 2115 psf 2115 detailed register description semiconductor group 242 11.97 4.3.7 moded - mode register (read/write) value after reset: 00 h mds2-0 ... mode select determines the message transfer mode of the hdlc controller, as follows: 70 moded mds2 mds1 mds0 tmd rac dim2 dim1 dim0 (a2) mds2-0 mode number of address bytes address comparison remark 1.byte 2.byte 0 0 0 auto mode 1 tei1,tei2 C one-byte address compare. hdlc protocol handling for frames with address tei1 0 0 1 auto mode 2 sap1,sap2,sapg tei1,tei2,teig two-byte address compare. lapd protocol handling for frames with address sap1 + tei1 0 1 0 non-auto mode 1 tei1,tei2 C one-byte address compare. 0 1 1 non-auto mode 2 sap1,sap2,sapg tei1,tei2,teig two-byte address compare. 1 0 0 reserved 1 0 1 transparent mode 1 > 1 C tei1,tei2,teig low-byte address compare. 1 1 0 transparent mode 2 C C C no address compare. all frames accepted. 1 1 1 transparent mode 3 > 1 sap1,sap2,sapg C high-byte address compare.
psb 2115 psf 2115 detailed register description semiconductor group 243 11.97 note: sap1, sap2: two programmable address values for the first received address byte (in the case of an address field longer than 1 byte); sapg = fixed value fc / fe h . tei1, tei2: two programmable address values for the second (or the only, in the case of a one-byte address) received address byte; teig = fixed value ff h tmd ...timer mode sets the operating mode of the ipac timer 1. in the external mode (0) the timer is controlled by the processor. it is started by setting the sti bit in cmdrd and it is stopped by a write of the timr1 register. in the internal mode (1) the timer is used internally by the ipac for timeout and retry conditions (handling of lapd/hdlc protocol in auto mode). rac ... receiver active the hdlc receiver is activated when this bit is set to 1. dim2-0 ... digital interface modes these bits define the characteristics of the iom data ports (du, dd) according to following table: table 27 iom ? -2 modes characteristics dim2, dim1, dim0 000 001 010 011 100...111 last octet of iom channel 2 used for tic bus access xx stop/go bit evaluated for d-channel access handling xx reserved x applications te mode xx lt-t mode with d-channel collision resolution x lt-t, lt-s modes with transparent d-channel x
psb 2115 psf 2115 detailed register description semiconductor group 244 11.97 4.3.8 timr1 - timer 1 register (read/write) value after reset: (not defined, previous value) cnt ... the meaning depends on the selected timer mode (moded:tmd): internal timer mode (tmd=1) cnt indicates the maximum number of s commands n1 which are transmitted autonomously by the ipac after expiration of time period t1 (retry, according to hdlc). the internal procedure will be started in automode: ? after start of an i-frame transmission or ? after an rnr s-frame has been received after the last retry a timer interrupt (tin-bit in istad) is generated. the timer procedure will be stopped when ? a tin interrupt is generated. the time between the start of an i-frame transmission or reception of an rnr s-frame and the generation of a tin interrupt is equal to: ( cnt + 1 ) x t1 ? or the timr1 is written ? or a positive or negative acknowledgment has been received. note: the maximum value of cnt can be 6. if cnt is set to 7, the number of retries is unlimited. external timer mode (tmd=0) cnt together with value determine the time period t2 after which a tin interrupt will be generated in the normal case: t2 = cnt x 2.048 sec + t1 with t1 = ( value+1 ) x 0.064 sec when tlp=1 (test loop activated, spcr register): t2 = 16348 x cnt x dcl + t1 with t1 = 512 x ( value+1 ) x dcl dcl denotes the period of the dcl clock. the timer can be started by setting the sti-bit in cmdrd and will be stopped when a tin interrupt is generated or the timr1 register is written. note: if cnt is set to 7, a tin interrupt is indefinitely generated after every expiration of t1. value ... determines the time period t1 t1 = ( value + 1 ) x 0.064 sec (spcr:tlp = 0, normal mode) t1 = 512 x ( value + 1 ) x dcl (spcr:tlp = 1, test mode) 754 0 timr1 cnt value (a3)
psb 2115 psf 2115 detailed register description semiconductor group 245 11.97 4.3.9 exird - extended interrupt register (read) value after reset: 00 h . xmr ... transmit message repeat the transmission of the last frame has to be repeated because: C the ipac has received a negative acknowledgment to an i frame in auto mode (according to hdlc/lapd) C or a collision on the s bus has been detected after the 32 nd data byte of a transmit frame. xdu ... transmit data underrun the current transmission of a frame is aborted by transmitting seven 1s because the xfifod holds no further data. this interrupt occurs whenever the processor has failed to respond to an xpr interrupt (istad register) quickly enough, after having initiated a transmission and the message to be transmitted is not yet complete. when a xmr or an xdu interrupt is generated, it is not possible to send transparent frames or i frames until the interrupt has been acknowledged by reading exir. pce ... protocol error (used in auto mode only) a protocol error has been detected in auto mode due to a received C s or i frame with an incorrect sequence number n (r) or C s frame containing an i field or C i frame which is not a command or C s-frame with an undefined control field. rfo ... receive frame overflow the received data of a frame could not be stored, because the rfifod is occupied. the whole message is lost. this interrupt can be used for statistical purposes and indicates that the processor does not respond quickly enough to an rpf or rme interrupt (istad). sov ... synchronous transfer overflow the synchronous transfer programmed in stcr has not been acknowledged in time via the sc0/sc1 bit. 70 exird xmr xdu pce rfo sov mos saw wov (a4)
psb 2115 psf 2115 detailed register description semiconductor group 246 11.97 mos ... monitor status a change in the monitor status register (mosr) has occured. saw ... subscriber awake used only in te mode (mode0=0) and if terminal specific functions are enabled (stcr:tsf=1). indicates that a falling edge on eaw line has been detected. wov ... watchdog timer overflow used only if terminal specific functions are enabled (stcr:tsf=1). signals the expiration of the watchdog timer, which means that the processor has failed to set the watchdog timer control bits wtc1 and wtc2 (adf1 register) in the correct manner. a reset pulse has been generated by the ipac.
psb 2115 psf 2115 detailed register description semiconductor group 247 11.97 4.3.10 xad1 - transmit address 1 (write) value after reset: (not defined) used in auto mode only. xad1 contains a programmable address byte which is appended automatically to the frame by the ipac in auto mode. depending on the selected address mode xad1 is interpreted as follows: 2-byte address field xad1 is the high byte (sapi in the isdn) of the 2-byte address field. bit 1 is interpreted as the command/response bit c/r. it is automatically generated by the ipac following the rules of isdn lapd protocol and the cri bit value in sap1 register. bit 1 has to be set to 0. in the isdn lapd the address field extension bit ea, i.e. bit 0 of xad1 has to be set to 0. or 1-byte address field according to the x.25 lapb protocol, xad1 is the address of a command frame. note: in standard isdn applications only 2-byte address fields are used. 70 xad1 (a4) c/r bit command response transmitting end cri bit 01subscriber0 1 0 network 0
psb 2115 psf 2115 detailed register description semiconductor group 248 11.97 4.3.11 xad2 - transmit address 1 (write) value after reset: (not defined) used in auto mode only. xad2 contains the second programmable address byte, whose function depends on the selected address mode: 2-byte address field xad2 is the low byte (tei in the isdn) of the 2-byte address field. or 1-byte address field according to the x.25 lapb protocol, xad2 is the address of a response frame. note: see note to xad1 register description. 4.3.12 rbcld - receive frame byte count low for d-channel (read) value after reset: 00 h rbc7-0 ... receive byte count eight least significant bits of the total number of bytes in a received message. bits rbc4-0 indicate the length of a data block currently available in the rfifod, the other bits (together with rbchd) indicate the number of whole 32-byte blocks received. if exactly 32 bytes are received rbcld holds the value 20 h . 70 xad2 (a5) 70 rbcld rbc7 rbc0 (a5)
psb 2115 psf 2115 detailed register description semiconductor group 249 11.97 4.3.13 sapr - received sapi register (read) value after reset: (not defined) when transparent mode 1 is selected sapr contains the value of the first address byte of a receive frame. 4.3.14 sap1 - sapi1 register (write) value after reset: (not defined) sapi1 ... sapi1 value value of the first programmable service access point identifier (sapi) according to the isdn lapd protocol. cri ... command/response interpretation cri defines the end of the isdn user-network interface the ipac is used on, for the correct identification of command and response frames. depending on the value of cri the c/r-bit will be interpreted by the ipac, when receiving frames in auto mode, as follows: for transmitting frames in auto mode, the c/r-bit manipulation will also be done automatically, depending on the value of the cri-bit (refer to xad1 register description). in message transfer modes with sapi address recognition the first received address byte is compared with the programmable values in sap1, sap2 and the fixed group sapi. in 1-byte address mode, the cri-bit is to be set to 0. 70 sapr (a6) 70 sap1 sapi1 cri 0 (a6) c/r bit cri bit receiving end command response 0 subscriber 1 0 1 network 0 1
psb 2115 psf 2115 detailed register description semiconductor group 250 11.97 4.3.15 sap2 - sapi2 register (write) value after reset: (not defined) sapi2 ... sapi2 value value of the second programmable service access point identifier (sapi) according to the isdn lapd-protocol. mcs ... modulo count select. used in auto-mode only. this bit determines the hdlc-control field format as follows: 0: one-byte control field (modulo 8) 1: two-byte control field (modulo 128) 4.3.16 rstad - receive status register (read) value after reset: (not defined) rda ... receive data a 1 indicates that data is available in the rfifod. after an rme-interrupt, a 0 in this bit means that data is available in the internal registers rhcrd or sapr only (e.g. s- frame). see also rhcrd-register description table. rdo ... receive data overflow if rdo=1, at least one byte of the frame has been lost, because it could not be stored in rfifod. crc ... crc check the crc is correct (1) or incorrect (0). rab ... receive message aborted the receive message was aborted by the remote station (1), i.e. a sequence of seven 1s was detected before a closing flag. 70 sap2 sapi2 mcs 0 (a7) 70 rstad rda rdo crc rab sa1 sa0 c/r ta (a7)
psb 2115 psf 2115 detailed register description semiconductor group 251 11.97 sa1-0 ... sapi address identification ta ... tei address identification sa1-0 are significant in auto-mode and non-auto-mode with a two-byte address field, as well as in transparent mode 3. ta is significant in all modes except in transparent modes 2 and 3. two programmable sapi values (sap1, sap2) plus a fixed group sapi (sapg of value fc/fe h ), and two programmable tei values (tei1, tei2) plus a fixed group tei (teig of value ff h ), are available for address comparison. the result of the address comparison is given by sa1-0 and ta, as follows: note: if the sapi values programmed to sap1 and sap2 are identical the reception of a frame with sap2/tei2 results in the indication sa1=1, sa0=0, ta=1. normally rstad should be read by the processor after an rme-interrupt in order to determine the status of the received frame. the contents of rstad are valid only after an rme-interrupt, and remain so until the frame is acknowledged via the rmc-bit. c/r ... command/response the c/r-bit identifies a receive frame as either a command or a response, according to the lapd-rules: address match with sa1 sa0 ta 1 st byte 2 nd byte number of address bytes = 1 x x x x 0 1 tei2 tei1 - - number of address bytes=2 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 x sap2 sap2 sapg sapg sap1 sap1 teig tei2 teig tei1 or tei2 teig tei1 command response direction 0 1 1 0 subscriber to network network to subscriber reserved
psb 2115 psf 2115 detailed register description semiconductor group 252 11.97 4.3.17 tei1 - tei1 register 1 (write) value after reset: (not defined) tei1 ... terminal endpoint identifier ea ... address field extension bit this bit is set to 1 according to hdlc/lapd. in all message transfer modes except in transparent modes 2 and 3, tei1 is used by the ipac for address recognition. in the case of a two-byte address field, it contains the value of the first programmable terminal endpoint identifier according to the isdn lapd-protocol. in the auto-mode with a two-byte address field, numbered frames with the address sapi1-tei1 are handled autonomously by the ipac according to the lapd-protocol. note: if the value ff h is programmed in tei1, received numbered frames with address sapi1-tei1 (sapi1-teig) are not handled autonomously by the ipac. in auto and non-auto-modes with one-byte address field, tei1 is a command address, according to x.25 lapb. 4.3.18 tei2 - tei2 register (write) value after reset: (not defined) tei2 ... terminal endpoint identifier ea ... address field extension bit this bit is to be set to 1 according to hdlc/lapd. in all message transfer modes except in transparent modes 2 and 3, tei2 is used by the ipac for address recognition. in the case of a two-byte address field, it contains the value of the second programmable terminal endpoint identifier according of the isdn lapd-protocol. in auto and non-auto-modes with one-byte address field, tei2 is a response address, according to x.25 lapd. 70 tei1 tei1 ea (a8) 70 tei2 tei2 ea (a9)
psb 2115 psf 2115 detailed register description semiconductor group 253 11.97 4.3.19 rhcrd - receive hdlc control register for d-channel (read) value after reset: (not defined) in all modes except transparent modes 2 and 3, this register contains the control field of a received hdlc-frame. in transparent modes 2 and 3, the register is not used. 1) s-frames are handled automatically and are not transferred to the microprocessor . 2) for u-frames (bit 0 of rhcrd = 1) the control field is as: in the modulo 8 case. 3) i-field. 4) for i-frames (bit 0 of rhcrd = 0) the compressed control field has the same format as in the modulo 8 case, but only the three lsbs of the receive and transmit counters are visible: 70 rhcrd (a9) contents of rhcrd mode modulo 8 (mcs=0) modulo 128 (mcs=1) contents of rfifod auto-mode, 1-byte address (u/i frames) 1) control field u-frames only: control field 2) from 3 rd byte after flag 3) auto-mode, 2-byte address (u/i frames) 1) control field u-frames only: control field 2) from 4 th byte after flag 3) auto-mode, 1-byte address (i frames) control field compressed form 4) from 4 th byte after flag 3) auto-mode, 2-byte address (i frames) control field in compressed form 4) from 5 th byte after flag 3) non-auto-mode, 1-byte address 2 nd byte after flag from 3 rd byte after flag non-auto-mode, 2-byte address 3 rd byte after flag from 4 th byte after flag transparent mode 1 3 rd byte after flag from 4 th byte after flag transparent mode 2 C from 1 st byte after flag transparent mode 3 C from 2 nd byte after flag 7 0 n(r) 2-0 p n(s) 2-0 0
psb 2115 psf 2115 detailed register description semiconductor group 254 11.97 4.3.20 rbchd - receive frame byte count high for d-channel (read) value after reset: 0xxx0000 2 . xac ... transmitter active the hdlc-transmitter is active when xac = 1. this bit may be polled. the xac-bit is active when: C either an xtf/xif-command is issued and the frame has not been completely transmitted C or the transmission of an s-frame is internally initiated and not yet completed. ov ... overflow a 1 in this bit position indicates a message longer than 4095 bytes. rbc8-11 ... receive byte count four most significant bits of the total number of bytes in a received message. note: normally rbchd and rbcld should be read by the processor after an rme- interrupt in order to determine the number of bytes to be read from the rfifod, and the total message length. the contents of the registers are valid only after an rme-interrupt, and remain so until the frame is acknowledged via the rmc-bit. 70 rbchd xac -- -- ov rbc11 rbc8 (aa)
psb 2115 psf 2115 detailed register description semiconductor group 255 11.97 4.3.21 star2 - status register 2 (read) value after reset: (not defined) wfa ... waiting for acknowledge this bit shows, if the last transmitted i-frame was acknowledged, i.e. v(a) = v(s) (=> wfa= 0) or was not yet acknowledged, i.e. v(a) < v(s) (=> wfa = 1). trec ... timer recovery status 0: the device is not in the timer recovery state. 1: the device is in the timer recovery state. sdet ... s-frame detected this bit is set to 1 by the first received correct i-frame or s-command with p = 1. it is reset by reading the star2 register or by a hw reset. 70 star20000wfa0trecsdet (ab)
psb 2115 psf 2115 detailed register description semiconductor group 256 11.97 4.3.22 spcr - serial port control register (read/write) value after reset: 00x00000 b spu ... software power up. (used in te-mode only) setting this bit to 1 will pull the du-line to low. this will enforce connected layer 1 devices to deliver iom-clocking. after power down in te-mode the spu-bit has to be set to 1 and then cleared again. after a subsequent cic-interrupt (c/i-code change; istad) and reception of the c/i- code pu (power up indication in te-mode) the reaction of the processor would be: ? to write an activate request or tim command as c/i-code in the cix0-register. ? to reset the spu bit and wait for the following cic-interrupt. sdl ... switch data line the switching of receive and transmit data of the d-channel controller to the iom-2 interface is programmable by the sdl bit. 0: transmit data is forwarded to the du line, receive data comes from the dd line. 1: transmit data is forwarded to the dd line, receive data comes from the du line. spm ... serial port timing mode depending on the interface mode, the following timing options for the d-channel controller are provided. 0: terminal mode all three channels of the iom-2 interface are used (typical applications: te mode, lt-s in intelligent nt). 1: non terminal mode the selected iom-2 channel (adf1:csel2-0) is used (typical applications: lt-t, lt-s modes, 8 channel structure on iom-2) note: the reset value for spm is determined by pin mode0 strapped to vdd or vss (see chapter 2.4.1 ), however after reset the host can reconfigure the serial port timing mode for the d-channel controller. tlp ... test loop when set to 1 the du and dd-lines are internally connected together, and the times t1 and t2 are reduced (see timr1 register). data coming from the layer 1 controller will not be forwarded to the layer 2 controller (see chapter 2.5.9.2 ). 70 spcr spu sdl spm tlp c1c1 c1c0 c2c1 c2c0 (b0)
psb 2115 psf 2115 detailed register description semiconductor group 257 11.97 c1c1, c1c0 ... channel 1 connect determines which of the two channels b1 or ic1 is connected to register c1r and/or b1cr, for monitoring, test-looping and switching data to/from the processor. c2c1, c2c0 ... channel 2 connect determines which of the two channels b2 or ic2 is connected to register c2r and/or b2cr, for monitoring, test-looping and switching data to/from the processor. note: b-channel access is only possible in te-mode. c1r b1cr c1c1 c1c0 read write read application(s) 0 0 1 1 0 1 0 1 ic1 ic1 C b1 C ic1 b1 b1 b1 b1 b1 C b1-monitoring + ic1-monitoring b1-monitoring + ic1-looping from/to iom b1-access from/to s; transmission of a constant value in b1-channel to s. b1-looping from s; transmission of a variable pattern in b1-channel to s. c2r b2cr c2c1 c2c0 read write read application(s) 0 0 1 1 0 1 0 1 ic2 ic2 C b2 C ic2 b2 b2 b2 b2 b2 C b2-monitoring + ic2-monitoring b2-monitoring + ic2-looping from/to iom b2-access from/to s; transmission of a constant value in b2-channel to s. b2-looping from s; transmission of a variable pattern in b2-channel to s.
psb 2115 psf 2115 detailed register description semiconductor group 258 11.97 4.3.23 cir0 - command/indication receive 0 (read) value after reset: 7c h bas ... bus access status indicates the state of the tic-bus: 0: the ipac itself occupies the d- and c/i-channel 1: another device occupies the d- and c/i-channel codr0 ... c/i code 0 receive value of the received command/indication code. a c/i-code is loaded in codr0 only after being the same in two consecutive iom-frames and the previous code has been read from cir0. cic0 ... c/i code 0 change a change in the received command/indication code has been recognized. this bit is set only when a new code is detected in two consecutive iom-frames. it is reset by a read of cir0. cic1 ... c/i code 1 change a change in the received command/indication code in iom-channel 1 has been recognized. this bit is set when a new code is detected in one iom-frame. it is reset by a read of cir0. cic1 is only used if terminal mode is selected. note: the bas and codr0 bits are updated every time a new c/i-code is detected in two consecutive iom-frames. if several consecutive valid new codes are detected and cir0 is not read, only the first and the last c/i code (and bas bit) is made available in cir0 at the first and second read of that register, respectively. 70 cir0 0 bas codr0 cic0 cic1 (b1)
psb 2115 psf 2115 detailed register description semiconductor group 259 11.97 4.3.24 cix0 - command/indication transmit 0 (write) value after reset: 3f h rss ... reset source select only valid if the terminal specific functions are activated (stcr:tsf). 0 ? subscriber or exchange awake as reset source serves: C a falling edge on the eaw -line (external subscriber awake) C a c/i code change (exchange awake). a logical zero on the eaw -line activates also the iom-interface clock and frame signal, just as the spu-bit (spcr) does. 1 ? watchdog timer the expiration of the watchdog timer generates a reset pulse. the watchdog timer will be reset and restarted, when two specific bit combinations are written in the adf1-register within the time period of 128 ms (see also adf1 register description). after a reset pulse generated by the ipac and the corresponding interrupt (wov, saw or cic) the actual reset source can be read from the istad and exird-register. note: external awake is only available in te mode. bac ... bus access control only valid if the tic-bus feature is enabled (moded:dim2-0). if this bit is set, the ipac will try to access the tic-bus to occupy the c/i-channel even if no d-channel frame has to be transmitted. it should be reset when the access has been completed to grant a similar access to other devices transmitting in that iom-channel. note: access is always granted by default to the ipac with tic-bus address (tba2-0, stcr register) 7, which has the lowest priority in a bus configuration. codx0 ... c/i-code 0 transmit code to be transmitted in the c/i-channel / c/i-channel 0. 70 cix0 rss bac codx0 1 1 (b1)
psb 2115 psf 2115 detailed register description semiconductor group 260 11.97 4.3.25 mor0 - monitor receive channel 0 (read) value after reset: (not defined) contains the monitor data received in iom-2 monitor channel 0 according to the monitor channel protocol. 4.3.26 mox0 - monitor transmit channel 0 (write) value after reset: (not defined) contains the monitor data transmitted in iom-2 monitor channel 0 according to the monitor channel protocol. 4.3.27 cir1 - command/indication receive 1 (read) value after reset: (not defined) codr1 ... c/i-code 1 receive (only valid in terminal mode) mr1 ... mr bit bit 1 of c/i channel 1 mx1 ... mx bit bit 0 of c/i/channel 1 70 mor0 (b2) 70 mox0 (b2) 70 cir1 codr1 mr1 mx1 (b3)
psb 2115 psf 2115 detailed register description semiconductor group 261 11.97 4.3.28 cix1 - command/indication transmit 1 (write) value after reset: ff h codx1 ... c/i-code 1 transmit (significant only in terminal mode) bits 7-2 of c/i-channel 1 4.3.29 mor1 - monitor receive channel 1 (read) value after reset: (not defined) used only in terminal mode. contains the monitor data received in iom monitor channel 1 according to the monitor channel protocol. 4.3.30 mox1 - monitor transmit channel 1 (write) value after reset: (not defined) used only in terminal mode. contains the monitor data to be transmitted in iom monitor channel 1 according to the monitor channel protocol. 70 cix1 codx1 1 1 (b3) 70 mor1 (b4) 70 mox1 (b4)
psb 2115 psf 2115 detailed register description semiconductor group 262 11.97 4.3.31 c1r - channel register 1 (read/write) value after reset: (not defined) used only in terminal mode. contains the value received/transmitted in iom-channel b1 or ic1, as the case may be (cf. c1c1, c1c0, spcr-register). 4.3.32 c2r - channel register 2 (read/write) value after reset: (not defined) used only in terminal mode. contains the value received/transmitted in iom-channel b2 or ic2, as the case may be (cf. c2c1, c2c0, spcr-register). 70 c1r (b5) 70 c2r (b6)
psb 2115 psf 2115 detailed register description semiconductor group 263 11.97 4.3.33 stcr - synchronous transfer control register (write) value after reset: 00 h tsf ... terminal specific functions (only in te mode) 0 ? no terminal specific functions 1 ? the terminal specific functions are activated, such as C watchdog timer C subscriber/exchange awake ( eaw ). in this case the e aw -line is always an input signal which can serve as a request signal from the subscriber to initiate the awake function in a terminal. a falling edge on the eaw -line generates an saw-interrupt (exird). when the rss-bit in the cix0-register is zero, a falling edge on the eaw -line (subscriber awake) or a c/i-code change (exchange awake) initiates a reset pulse. when the rss-bit is set to one a reset pulse is triggered only by the expiration of the watchdog timer (see also cix0-register description). note: the tsf-bit will be cleared only by a hardware reset. the exchange awake functionality is only available in te mode. tba2-0 ... tic bus address defines the individual address for the ipac on the iom-bus. this address is used to access the c/i- and d-channel on the iom. note: one device liable to transmit in c/i- and d-fields on the iom should always be given the address value 7. st1 ... synchronous transfer 1 when set, causes the ipac to generate a sin-interrupt status (istad-register) at the beginning of an iom-frame. st0 ... synchronous transfer 0 when set, causes the ipac to generate a sin-interrupt status (istad-register) at the middle of an iom-frame. 70 stcr tsf tba2 tba1 tba0 st1 st0 sc1 sc0 (b7)
psb 2115 psf 2115 detailed register description semiconductor group 264 11.97 sc1 ... synchronous transfer 1 completed after a sin interrupt the processor has to acknowledge the interrupt by setting the sc1 bit before the middle of the iom frame, if the interrupt was originated from a synchronous transfer 1 (st1). otherwise a sov interrupt (exird register) will be generated. sc0 ... synchronous transfer 0 completed after a sin interrupt the processor has to acknowledge the interrupt by setting the sc0 bit before the end of the iom frame, if the interrupt was originated from a synchronous transfer 0 (st0). otherwise a sov interrupt (exird register) will be generated. note: st0/1 and sc0/1 are useful for synchronizing processor accesses and receive/ transmit operations. 4.3.34 b1cr - b1 channel register (read) value after reset: (not defined) used only in terminal mode. contains the value received in iom-channel b1, if programmed (cf. c1c1, c1c0, spcr-register). 4.3.35 b2cr - b2 channel register (read) value after reset: (not defined) used only in terminal mode. contains the value received in the iom-channel b2, if programmed (cf. c2c1, c2c0, spcr-register). 70 b1cr (b7) 70 b2cr (b8)
psb 2115 psf 2115 detailed register description semiconductor group 265 11.97 4.3.36 adf1 - additional feature register 1 (write) value after reset: 0000xxx0 2 wtc1, 2 ... watchdog timer control 1, 2 after the watchdog timer mode has been selected (stcr:tsf = cix0:rss = 1) the watchdog timer is started. during every time period of 128 ms the processor has to program the wtc1- and wtc2- bit in the following sequence: to reset and restart the watchdog timer. if not, the timer expires and a wov-interrupt (exird) together with a reset pulse is generated. ci1e ... c/i-channel 1 interrupt enable interrupt generation istad:cic of cir0:cic1 is enabled (1) or masked (0). csel2-0 ... iom-2 channel select (in lt modes only) select one iom-channel out of 8, where the ipac is to receive/transmit b-channel data. 000 channel 0 (first channel in iom-frame) 001 channel 1 ... 111 channel 7 (last channel in iom-frame) the reset value for csel2-0 is determined by the pins ch2-0 strapped to vdd or vss. after reset the selected channel can be reconfigured by the host and the setting of pins ch2-0 has no further effect. 70 adf1 wtc1 wtc2 ci1e 0 csel2 csel1 csel0 itf (b8) wtc1 wtc2 1. 2. 1 0 0 1
psb 2115 psf 2115 detailed register description semiconductor group 266 11.97 itf ... inter-frame time fill selects the inter-frame time fill signal which is transmitted between hdlc-frames. 0: idle (continuous 1 s), 1: flags (sequence of patterns: 0111 1110) note: in te- and lt-t-applications with d-channel access handling (collision resolution), the only possible inter-frame time fill signal is idle (continuous 1s). otherwise the d-channel on the s/ t-bus cannot be accessed. 4.3.37 mosr - monitor status register (read) value after reset: 00 h mdr1 ... monitor channel 1 data received mer1 ... monitor channel 1 end of reception mda1 ... monitor channel 1 data acknowledged the remote end has acknowledged the monitor byte being transmitted. mab1 ... monitor channel 1 data abort mdr0 ... monitor channel 0 data received mer0 ... monitor channel 0 end of reception mda0 ... monitor channel 0 data acknowledged the remote end has acknowledged the monitor byte being transmitted. mab0 ... monitor channel 0 data abort 70 mosr mdr1 mer1 mda1 mab1 mdr0 mer0 mda0 mab0 (ba)
psb 2115 psf 2115 detailed register description semiconductor group 267 11.97 4.3.38 mocr - monitor control register (write) value after reset: 00 h mre1 ... monitor receive interrupt enable (iom-channel 1) monitor interrupt status mdr1 generation is enabled (1) or masked (0). mre0 ... monitor receive interrupt enable (iom-channel 0) monitor interrupt status mdr0, mer0 generation is enabled (1) or masked (0). mrc1, 0 ... determines the value of the mr-bit: 0: determines the value of the mr-bit: mr always 1. in addition, the mdr1/mdr0 interrupt is blocked, except for the first byte of a packet (if mre 1/0=1). 1: mr internally controlled by the ipac according to monitor channel protocol. in addition, the mdr1/mdr0-interrupt is enabled for all received bytes according to the monitor channel protocol (if mre1,0=1). mie1 ... monitor interrupt enable (iom-channel 1) monitor interrupt status mer1, mda1, mab1 generation is enabled (1) or masked (0). mie0 ... monitor interrupt enable (iom-channel 0) monitor interrupt status mda0, mab0 generation is enabled (1) or masked (0). mxc1, 0 ... mx bit control (iom-channel 1,0) determines the value of the mx-bit: 0.. mx always 1. 1.. mx internally controlled by the ipac according to monitor channel protocol. 70 mocr mre1 mrc1 mie1 mxc1 mre0 mrc0 mie0 mxc0 (ba)
psb 2115 psf 2115 detailed register description semiconductor group 268 11.97 4.4 general ipac registers 4.4.1 conf - ipac configuration register (read/write) value after reset: 00 h amp ... amplification of s/t receiver 0: an external transformer of ratio 2:1 is connected to the receive lines. 1: an external transformer of ratio 1:1 is connected to the receive lines. cfs ... configuration select this bit determines clock relations and recovery on s/t and iom interfaces. ? te and lt-t modes ? lt-s mode 70 conf amp cfs tem pds idh sgo ods iof (c0) 0: the iom interface clock and frame signals are always active, "power down" state included. the states "power down" and "power up" are thus functionally identical except for the indication: pd = 1111 and pu = 0111. with the c/i command timing (tim) the processor can enforce the "power up" state. with c/i command deactivation indication (diu) the "power down" state is reached again. however, it is also possible to activate the s-interface directly with the c/i command activate request (ar 8/10/l) without the tim command. 1: the iom interface clock and frame signals are normally inactive ("power down"). for activating the iom-2 clocks the "power up" state can be induced by software (spu-bit in spcr register) or by resetting again cfs. after that the s-interface can be activated with the c/i command activate request (ar 8/10/l). the "power down" state can be reached again with the c/i command deactivation indication (diu). note: after reset the iom interface is always active. to reach the "power down" state the cfs-bit has to be set. cfs has to be set to "0" always.
psb 2115 psf 2115 detailed register description semiconductor group 269 11.97 tem ... test mode in test mode (tem=1) all layer-1 functions are disabled and the ipac behaves like a d- channel hdlc controller (e.g. icc peb 2070) with a two channel hdlc communications controller (e.g. hscx-te psb 21525). pds ... phase deviation select defines the phase deviation of the s-transceiver in te or lt-t mode. 0: the phase deviation is two s-bits plus analog delay plus delay of the external circuitry. 1: the above phase deviation is reduced by 2 oscillator clocks (= 260 ns). idh ... iom d-channel priority handler the state machine for d-channel priority handling on iom-2 is 0: disabled 1: enabled note: this mode is used in intelligent nt applications. the priority 8 or 10 is selected via bit scfg:pri. sgo ... stop/go bit output (lt-t mode) in lt-t mode the s/g bit can be output on pin aux7. this may be used for test purposes in order to observe the stop/go indications. 0: pin aux7 has default i/o functionality. 1: the s/g bit is output on pin aux7. ods ... output driver selection defines the output driver of the iom-2 interface: 0: open drain 1: push pull iof ... iom off 0: iom interface is operational 1: iom interface is switched off (du, dd, fsc, dcl, bcl/sclk, sds high impedant). iof should be set to 1 if external devices connected to the iom interface should be disconnected e.g. for power saving purposes or for not disturbing the internal iom connection between layer 1 and layer 2. however, the ipac internal operation between s-transceiver, b-channel and d-channel controller is independent of the iof bit. in non-te mode fsc and dcl (both input) are not switched off from the iom-2 interface.
psb 2115 psf 2115 detailed register description semiconductor group 270 11.97 4.4.2 ista - ipac interrupt status register (read) value after reset: 00 h int1, int0 ... interrupt 1/0 from external devices a low level or negative state transition (programmable in acfg: el1, el0) was detected at pin aux6 or aux7 respectively. icd ... interrupt from d-channel an interrupt is caused by the d-channel, its source can be read in the interrupt status register of the d-channel (istad). exd ... extended interrupt from d-channel an extended interrupt is caused by the d-channel, its source can be read in the extended interrupt status register of the d-channel (exird). ica, icb ... interrupt from b-channel a, b an interrupt is caused by the b-channel a, b. its source can be read in the interrupt status register of the b-channel a or b, respectively (istab). exa, exb ... extended interrupt from b-channel a, b an extended interrupt is caused by the b-channel a, b. its source can be read in the extended interrupt status register of the b-channel a or b, respectively (exirb). 70 ista int1 int0 icd exd ica exa icb exb (c1)
psb 2115 psf 2115 detailed register description semiconductor group 271 11.97 4.4.3 mask - ipac mask register (write) value after reset: c0 h each interrupt source can selectively be masked by setting the respective bit in mask (bit positions corresponding to ista register). masked interrupts are not indicated when reading ista. instead, they remain internally stored and will be indicated after the respective mask bit is reset. note: in the event of an extended interrupt, no interrupt request will be generated with a masked icd, exd, ica, exa, icb, exb bit, although a bit is set in istad, exird, istab or exirb. after reset all interrupts are enabled except int1 and int0. 4.4.4 id - identification register (read) value after reset: 01 h id ... identification number the version number of the ipac can be read from id 01 h : version 1.1 70 mask int1 int0 icd exd ica exa icb exb (c1) 70 id (c2)
psb 2115 psf 2115 detailed register description semiconductor group 272 11.97 4.4.5 acfg - auxiliary interface configuration (read/write) value after reset: 00 h od7 - od2 ... output driver select for aux7 - aux2 0: output is open drain 1: output is push/pull note: the odx configuration is only valid, if the corresponding output is enabled in the aoe register. aux2 is only available in te mode and not in lt modes. in lt modes aux 3-5 is only available if the pcm interface is disabled (pcfg:pld=1). in te mode the host must set pcfg:pld=1 before the output driver is selected. el1, el0 ... edge / level triggered interrupt input for int1 , int0 0: a negative level ... 1: a negative edge ... on int1/0 (pins aux7/6) generates an interrupt to the ipac. an interrupt is only generated to the ipac, if the corresponding mask bit in mask is reset. note: this configuration is only valid, if the corresponding output enable bit in aoe is disabled. 70 acfg od7 od6 od5 od4 od3 od2 el1 el0 (c3)
psb 2115 psf 2115 detailed register description semiconductor group 273 11.97 4.4.6 aoe - auxiliary output enable (read/write) value after reset: fc h oe7 - oe2 ... output enable for aux7-2 0: pin aux7-2 is configured as output. the value of the corresponding bit in the atx register is driven on aux7-2. 1: pin aux7-2 is configured as input. the value of the corresponding bit can be read from the arx register. note: if pins aux7, aux6 are to be used as interrupt input, oe7,oe6 must be set to 1. pin aux2 is only available in te mode and not in lt modes. in lt modes the pins aux 3-5 are only available if the pcm interface is disabled (pcfg:pld=1). the general purpose i/o pins are input after reset (oex=1). 4.4.7 arx - auxiliary interface receive register (read) value after reset: (not defined) ar7-ar2 ... auxiliary receive the value of ar7-ar2 reflects the level at pin aux7-aux2 at that time when arx is read by the host. if the mask bit for aux7,6 is set in the mask register, no interrupt is generated to the ipac, however, the current state at pin aux7,6 can be read from ar7,6. note: pin aux2 is only available in te mode and not in lt modes. in lt modes the pins aux 3-5 are only available if the pcm interface is disabled (pcfg:pld=1). 70 aoe oe7 oe6 oe5 oe4 oe3 oe2 0 0 (c4) 70 arx ar7 ar6 ar5 ar4 ar3 ar2 0 0 (c5)
psb 2115 psf 2115 detailed register description semiconductor group 274 11.97 4.4.8 atx - auxiliary interface transmit register (write) value after reset: 00 h at7-at2 ... auxiliary transmit a 0 or 1 in at7-at2 will drive a low or high level at pin aux7-aux2, if the corresponding output is enabled in the aoe register. note: aux2 is only available in te mode and not in lt modes. in lt modes aux 3-5 is only available if the pcm interface is disabled (pcfg:pld=1). 4.4.9 pita1/2 - pcm input time slot assignment b1/b2 (read/write) value after reset: 00 h pita1 refers to the b1-channel and pita2 to the b2-channel of the iom channel which is selected by pcfg:csl2-0. ena ... enable pcmin channel 0: disables... 1: enables ... reception of data in from the pcm interface line pcmin. note: data from an external controller is received on the pcm interface by the ipac. this data is then mapped to the corresponding b1/b2 channel of the iom-2 du line (default) or dd line. dudd ... switch on iom-2 du/dd line the selected pcm timeslot on the pcmin line is mapped to the 0: du-line (default) 1: dd-line ... of the iom-2 interface. 70 atx at7 at6 at5 at4 at3 at2 0 0 (c5) 70 pita1/ pita2 ena dudd 0 tnrx (c6/c7)
psb 2115 psf 2115 detailed register description semiconductor group 275 11.97 tnrx ... time slot number receive selects one of up to 32 possible timeslots (00h-1fh) in which data is received from the pcm interface. note: the configuration of the pcm timeslots is equal for b1 and b2-channel. 4.4.10 pota1/2 - pcm output time slot assignment b1/b2 (read/write) value after reset: 00 h pota1 refers to the b1-channel and pota2 to the b2-channel of the iom channel which is selected by pcfg:csl2-0. ena ... enable pcmout channel 0: disables... 1: enables ... transmission of data on the pcm interface line pcmout. note: data is transmitted by the ipac on the pcm interface to an external device. this data may be originated from the b1/b2 channel of the iom-2 dd-line (default) or du-line. dudd ... switch on iom-2 du/dd line the selected pcm timeslot on the pcm interface is mapped to the 0: dd-line (default) 1: du-line ... of the iom-2 interface. sres... software reset 0: deactivates ... 1: activates ... the internal reset state of the ipac. the reset state is activated to the internal blocks of the ipac when a 1 is written to sres and it is active until the sres-bit is set to 0 again, i.e. the host must ensure the required reset timing of the ipac which is 4 ms. 70 pota1 ena dudd 0 tntx (c8) 70 pota2 ena dudd sres tntx (c9)
psb 2115 psf 2115 detailed register description semiconductor group 276 11.97 tntx ... time slot number transmit selects one of up to 32 possible timeslots (00h-1fh) in which data is transmitted to the pcm interface. note: the configuration of the pcm timeslots is equal for b1 and b2-channel. 4.4.11 pcfg - pcm configuration register (read/write) value after reset: 00 h dps ... data path select data from the b-channel fifos is exchanged with the 0: iom-2 interface 1: pcm interface acl ... acl function select 0: pin acl indicates the s-bus activation status by a low level 1: the state at pin acl is programmable by the host via bit led. led ... led control if enabled (acl=1) the led connected to pin acl is switched 0: off 1: on note: the state (log. high/low) on pin acl is derived from the inverted state of pcfg:led. for acl=0 the state of pcfg:led has no effect. pld ... pcm lines disable (lt-s and lt-t modes) 0: aux3-5 are used for pcm interface (default) 1: aux3-5 are used as normal i/o lines (pcm interface disabled) note: in te mode pld must be set to 1 before aux3-5 are used as i/o lines. 70 pcfg dps acl led pld fbs csl2 csl1 csl0 (ca)
psb 2115 psf 2115 detailed register description semiconductor group 277 11.97 fbs ... fsc/bcl output select (lt-s and lt-t modes) 0: fsc is output on aux3, which is derived from the dcl input by division of 192. 1: bcl single bit clock is output on aux3. it is derived from the dcl input by division of 2. note: sclk output provides 1.536 mhz in lt-t mode. this may be used for the dcl input. this bit is ignored in te mode. csl2-0 ... iom-2 channel selection for pcm (lt-s and lt-t modes) selects one of eight iom channels to which the pcm interface is connected to. 000: channel 0 001: channel 1 :: 111: channel 7 note: these bits are ignored in te mode. 4.4.12 scfg - sds configuration register (read/write) value after reset: 00 h pri ... priority for d-channel handler (only in lt-s mode in intelligent nt) determines the priority of d-channel access on iom-2 for the d-channel controller on the ipac and for external d-channel sources connected to the iom-2 interface. the state machine for d-channel handling controls the s/g bit according to the setting of pri and enables the access of internal or external d-channel sources. 0: priority = 8 1: priority = 10 note: the read back value of pri only contains the programmed value as soon as the state machine has switched to the selected priority. the d-channel handler can be enabled/disabled via bit conf:idh. txd ... s-transmitter disable the transmitter of the s-transceiver can be disabled by setting txd to 1. this can be used to reduce power consumption (see chapter 2.5.4 ). 70 scfg pri txd tlen tslt (cb)
psb 2115 psf 2115 detailed register description semiconductor group 278 11.97 tlen ... timeslot length 0: 8 bit 1: 16 bit tslt ... timeslot position selects one of 32 timeslots on the iom-2 interface (with respect to fsc) during which sds is active high. the data strobe signal allows standard data devices to access a programmable channel. 4.4.13 timr2 - timer 2 register (read/write) value after reset: 00 h tmd ... timer mode timer 2 can be used in two different modes of operation. 0: count down timer. an interrupt is generated only once after a time period of 1 ... 63 ms. 1: periodic timer. an interrupt is periodically generated every 1 ... 63 ms (see cnt). cnt ... timer count 0: timer off 1 ... 63: timer length = 1 ... 63 ms by writing 0 to cnt, the timer is immediately stopped. a value different from that determines the time period after which an interrupt will be generated. if the timer is already started with a certain cnt value and is written again before an interrupt has been released, the timer will be reset to the new value and restarted again. an interrupt is indicated to the host in istad:tin2. 70 timr2 tmd 0 cnt (cc)
psb 2115 psf 2115 electrical characteristics semiconductor group 279 11.97 5 electrical characteristics absolute maximum ratings note: stresses above those listed under absolute maximum ratings may cause permanent damage to the device. exposure to conditions beyond those indicated in the recommended operational conditions of this specification may affect device reliability. this is a stress rating only and functional operation of the device under these conditions or at any other condition beyond those indicated in the operational conditions of this specification is not implied. line overload protection the maximum input current (under overvoltage conditions) is given as a function of the width of a rectangular input current pulse ( figure 99 ). figure 99 test condition for maximum input current parameter symbol limit values unit voltage on any pin with respect to ground v s C 0.3 to v dd + 0.3 v ambient temperature under bias t a 0 to 70 c storage temperature t stg C 65 to 150 c maximum voltage on v dd v dd 7 v itd09658 i t ipac condition: all other pins grounded t wi
psb 2115 psf 2115 electrical characteristics semiconductor group 280 11.97 line input current the destruction limits are given in figure 100 . figure 100 maximum line input current itd10061 sec t 10 -3 10 -5 10 -7 -9 10 ma i 5000 500 50 5
psb 2115 psf 2115 electrical characteristics semiconductor group 281 11.97 dc characteristics t a = 0 to 70 c; v dd = 5 v 5 %, v dda = 5 v 5%, v ss = 0 v, v ssa = 0 v parameter symbol limit values unit test condition remarks min max l-input voltage v il C 0.3 0.8 v all pins except sx1,2, sr1,2 xtal1/2 h-input voltage v ih 2.0 v dd +0.3 v l-output voltage v ol 0.45 v i ol = 7 ma (du, dd, c768) i ol = 5 ma (acl , aux6,7, ad0-7) i ol = 2 ma (all others) h-output voltage v oh 2.4 v i oh = C 5 ma (ad0-7) i oh = C 400 m a (all others) h-output voltage v oh v dd C0.5 v i oh = C 100 m a power supply current - power down i cc 3ma v dd =5v inputs at v ss / v dd no output loads power supply current - operational 20 ma dcl=1536 khz (96 khz test pulse) v dd =5v inputs at v ss / v dd no output loads (including sx1, 2) 20 ma dcl=1536 khz (b1=b2=ff h , d=1) 25 ma dcl=4096 khz (b1=b2=ff h , d=1)
psb 2115 psf 2115 electrical characteristics semiconductor group 282 11.97 note: due to the transformer, the load resistance seen by the circuit is four times r l . input leakage current output leakage current i li i lo 1 1 m a m a 0v < v in < v dd 0v < v out < v dd all pins except sx1,2, sr1,2 xtal1/2, aux7/6 input leakage current internal pull-up i lipu 50 200 m a0v < v in < v dd aux7/6 absolute value of output pulse amplitude (vsx2 C vsx1) v x 2.03 2.10 2.31 2.39 v v r l = 50 w r l = 400 w sx1,2 transmitter output current i x 7.5 13.4 ma r l = 5.6 w transmitter output impedance z x 10 0 k w w inactive or during binary one during binary zero r l = 50 w receiver input impedance z r 30 k w v dd = 5 v sr1,2 dc characteristics t a = 0 to 70 c; v dd = 5 v 5 %, v dda = 5 v 5 %, v ss = 0 v, v ssa = 0 v (contd) parameter symbol limit values unit test condition remarks min max
psb 2115 psf 2115 electrical characteristics semiconductor group 283 11.97 capacitances t a = 25 c, v dd = 5 v 5 %, v ssa = 0 v, v ssd = 0 v, f c = 1 mhz, unmeasured pins grounded. table 28 capacitances parameter symbol limit values unit remarks min. max. input capacitance i/o capacitance c in c i/o 7 7 pf pf all pins except sx1,2 and xtal1,2 output capacitance against v ssa c out 10 pf sx1,2 load capacitance c l 50 pf xtal1,2
psb 2115 psf 2115 electrical characteristics semiconductor group 284 11.97 recommended oscillator circuits figure 101 oscillator circuits crystal specification note: the load capacitance c l depends on the recommendation of the crystal specification. typical values for c l are 22 ... 33 pf. xtal1 clock characteristics (external oscillator input) parameter symbol limit values unit frequency f 7.680 mhz frequency calibration tolerance max. 100 ppm load capacitance c l max. 50 pf oscillator mode fundamental parameter limit values min. max. duty cycle 1:2 2:1 its09659 7.68 mhz xtal1 xtal2 xtal2 xtal1 n.c. oscillator external signal crystal oscillator mode driving from external source 42 41 41 42 pf 33 33 pf c l l c
psb 2115 psf 2115 electrical characteristics semiconductor group 285 11.97 ac characteristics t a = 0 to 70 c, v dd = 5 v 5% inputs are driven to 2.4 v for a logical "1" and to 0.45 v for a logical "0". timing measurements are made at 2.0 v for a logical "1" and 0.8 v for a logical "0". the ac testing input/output waveforms are shown in figure 102. figure 102 input/output waveform for ac tests its09660 = 100 load c test under device 0.45 2.4 2.0 0.8 0.8 2.0 test points pf
psb 2115 psf 2115 electrical characteristics semiconductor group 286 11.97 microprocessor interface timing siemens/intel bus mode figure 103 microprocessor read cycle figure 104 microprocessor write cycle figure 105 multiplexed address timing
psb 2115 psf 2115 electrical characteristics semiconductor group 287 11.97 figure 106 non-multiplexed address timing motorola bus mode figure 107 microprocessor read timing figure 108 microprocessor write cycle itt09661 wr x cs or a0-a7 t ah t as address rd x cs itt09679 cs x ds d0 - d7 t dw data t wd dsd t ww tt wi r / w t rwd
psb 2115 psf 2115 electrical characteristics semiconductor group 288 11.97 figure 109 non-multiplexed address timing microprocessor interface timing parameter symbol limit values unit min. max. ale pulse width t aa 50 ns address setup time to ale t al 15 ns address hold time from ale t la 10 ns address latch setup time to wr , rd t als 0ns address setup time t as 25 ns address hold time t ah 10 ns ale guard time t ad 15 ns ds delay after r/w setup t dsd 0ns rd pulse width t rr 110 ns data output delay from rd t rd 110 ns data float from rd t df 25 ns rd control interval t ri 70 ns w pulse width t ww 60 ns data setup time to w x cs t dw 35 ns data hold time w x cs t wd 10 ns w control interval t wi 70 ns r/w hold from cs x ds inactive t rwd tbd ns itt09662 cs x ds ad0 - ad7 t ah t as
psb 2115 psf 2115 electrical characteristics semiconductor group 289 11.97 serial interface timing figure 110 iom ? timing (te mode) itd09663 t fsd t iis iih t t iod bcd t bcd t sdd t fsc (o) dcl (o) du/dd (i) du/dd (o) sds (o) fsc/bcl (o)
psb 2115 psf 2115 electrical characteristics semiconductor group 290 11.97 figure 111 iom ? timing (lt-s, lt-t mode) parameter symbol limit values unit min. max. iom output data delay t iod 100 ns iom input data setup t iis 20 ns iom input data hold t iih 20 ns fsc strobe delay t fsd -100 20 ns strobe signal delay t sdd 120 ns bcl / fsc delay t bcd 100 ns frame sync setup t fss 50 ns frame sync hold t fsh 30 ns frame sync width t fsw 40 ns t fss t fsh t fsw fsc (i) dcl (i) du/dd (i) iih t iis t du/dd (o) bit 0 bit 0 sdd t sds (o) t iod itt09680 t fss t fsh
psb 2115 psf 2115 electrical characteristics semiconductor group 291 11.97 pcm interface timing figure 112 pcm interface timing (lt-s, lt-t mode) parameter symbol limit values unit min. max. pcm output data delay t pod 100 ns pcm input data setup t pis 20 ns pcm input data hold t pih 50 ns bcl delay t bcd 100 ns frame sync setup t fss 50 ns frame sync hold t fsh 30 ns frame sync width t fsw 40 ns t fss t fsh t fsw fsc (i) dcl (i) pcmin pih t pis t pcmout bit 0 bit 0 bcd t bcl (o) t pod itt09681 t fss t fsh bcd t (fbout)
psb 2115 psf 2115 electrical characteristics semiconductor group 292 11.97 figure 113 bcl, fsc output delay parameter symbol limit values unit min. max. bcl delay from dcl t bcd 100 ns fsc delay from dcl t fsd 100 ns
psb 2115 psf 2115 electrical characteristics semiconductor group 293 11.97 auxiliary interface timing certain pins from the auxiliary interface can be used as standard i/o pins (see chapter 2.8 ). their timing conditions either as input or as output is shown in figure 114 . the read and write signals indicate the corresponding access to the ipac register, they are not control signals on the auxilliary interface. figure 114 aux interface i/o timing parameter symbol limit values unit min. max. auxiliary input data setup t ais 30 ns auxiliary input data hold t aih 30 ns auxiliary output data delay t aod 200 ns
psb 2115 psf 2115 electrical characteristics semiconductor group 294 11.97 clock timing the clocks in the different operating modes are summarized in table below with the respective duty ratios. note: m0 and m1 denote the pins mode0 and mode1/eaw , respectively. in te mode mode 1 is dont care (used as eaw pin). all output clocks are synchronous to the s-receiver. bcl/sclk output in lt-s mode is derived from the dcl input clock. the 1536-khz clock (te mode) is phase-locked to the receive s signal, and derived using the internal dpll and the 7.68 mhz 100 ppm crystal. a phase tracking with respect to "s" is performed once in 250 m s. as a consequence of this dpll tracking, the "high" state of the 1536-khz clock may be either reduced or extended by half of one 7.68-mhz period (duty ratio 4:5 or 5:4 instead of 5:5) once every 250 m s. since the other signals are derived from this clock (te mode), the "high" or "low" states may likewise be reduced or extended by the same amount once every 250 m s. the phase relationships of the clocks are shown in figure 115. figure 115 phase relationships of ipac clock signals application m0 m1 dcl fsc bcl / sclk te 0 x o: 1536 khz 1:1 o: 8khz 1:2 o: 768 khz 1:1 lt-t 1 1 i: 4096 khz (max.) i: 8 khz o: 1536 khz 1:1 lt-s 1 0 i: 4096 khz (max.) i: 8 khz o: dcl/2 itd09664 7.68 mhz 1536 khz * 768 khz * synchronous to receive s/t. duty ratio 1:1 normally
psb 2115 psf 2115 electrical characteristics semiconductor group 295 11.97 the following tables give the timing characteristics of the clocks. figure 116 definition of clock period and width dcl clock characteristics parameter symbol limit values unit test condition min. typ. max. (te) 1536 khz t po 585 651 717 ns osc 100 ppm t who 235 315 405 ns osc 100 ppm t wlo 300 315 350 ns osc 100 ppm (lt-s, lt-t) 4096 khz t pi 240 244 ns t whi 100 ns t wli 100 ns
psb 2115 psf 2115 electrical characteristics semiconductor group 296 11.97 jitter in te mode, the timing extraction jitter of the ipac conforms to ccitt recommendation i.430 (C 7% to + 7% of the s-interface bit period). in the lt-s applications, the clock input fsc is used as reference clock to provide the 192-khz clock for the s-line interface. in the case of a plesiochronous 7.68-mhz clock generated by an oscillator, the clock fsc should have a jitter less than 100 ns peak-to- peak. (in the case of a zero input jitter on fsc the ipac generates at most 65 ns "self- jitter" on the s interface.) in the case of a synchronous (fixed divider ratio between xtal1 and dcl) 7.68-mhz clock (input xtal1), the ipac transfers the input jitter of xtal1, dcl and fsc to the s interface. the maximum jitter of the lt-s output is limited to 260 ns peak-to-peak (ccitt i.430). description of the transmit pll (xpll) of the ipac function of the xpll the xpll generates a 1.536-mhz clock synchronized to the fsc 8-khz clock by modification of the counter's divider ratio. the 1.536-mhz clock is then divided to 192 khz and 8 khz. the 8 khz is used as the looped back clock and compared to the fsc 8-khz in the phase detector. jitter considerations in case of a synchronous 7.68-mhz clock after the xpll has locked once, no more tracking steps are performed because there is a fixed divider ratio of 960 between 7.68 mhz and fsc. therefore the input jitter at fsc and 7.68 mhz is transferred transparently to the s/t interface (192 khz). jitter considerations in case of a plesiochronous 7.68-mhz clock (crystal) each tracking step of the xpll produces an output jitter of 130 ns pp. in case of non- zero input jitter at dcl, this input jitter is increased by 130 ns pp. that means that the output jitter will not exceed 130 ns pp.
psb 2115 psf 2115 electrical characteristics semiconductor group 297 11.97 figure 117 block diagram of xpll description of the receive pll (rpll) of the ipac the receive pll performs phase tracking each 250 m s after detecting the phase between the f/l transition of the receive signal and the recovered clock. phase adjustment is done by adding or subtracting 65 ns to or from a 1.536-mhz clock cycle. the 1.536-mhz clock is than used to generate any other clock synchronized to the line. during (re)synchronization an internal reset condition may effect the 1.536-mhz clock to have high or low times as short as 130 ns. after the s/t interface frame has achieved the synchronized state (after three consecutive valid pairs of code violations) the fsc output in te mode is set to a specific phase relationship, thus causing once an irregular fsc timing. its09665 divider 5 1 divider divider phase detector up/down counter lag lead up down 8 192 8 khz 1.536 mhz 7.68 mhz 192 khz fsc 8 khz
psb 2115 psf 2115 electrical characteristics semiconductor group 298 11.97 reset figure 118 reset signal table 29 reset signal characteristics parameter symbol limit values unit test conditions min. length of active high state t rst 4 ms power on/power down to power up (standby) 2 x dcl clock cycles during power up (standby)
psb 2115 psf 2115 package outlines semiconductor group 299 11.97 6 package outlines p-mqfp-64 (plastic metric quad flat package) gpm05247 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device
psb 2115 psf 2115 package outlines semiconductor group 300 11.97 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device p-tqfp-64 (plastic thin quad flat package) gpm05613
psb 2115 psf 2115 appendix semiconductor group 301 11.97 7 appendix the following chapters contain a quick reference guide. 7.1 mon-8 registers mon-8 configuration register in the configuration register the user programs the ipac for different operational modes, and selects required s-bus features. the following paragraphs describe the application relevance of all individual configuration register bits. value after reset: 00 h address: 1h mfd 0 fsmm lp sqm rcve c/w/p 0 rd/wr mfd multi-frame-disable. selects whether multiframe generation (lt-s) or synchronization (te, lt-t) is prohibited (mfd=1) or allowed (mfd=0). enable multiframing if s/q channel data transfer is desired. if mfd=1 no s/q monitor messages are released. when reading this register the bit indicates whether multiframe synchronization has been established (mfd=1) or not (mfd=0). fsmm finite state machine mode. by programming this bit the user has the possibility to exchange the state machines of lt-s and nt, i.e. an ipac pin strapped for lt-s operates with a nt state machine. all other operation mode specific characteristics are retained. this function is used in intelligent nt configurations where the ipac needs to be pin-strapped to lt-s mode but the state machine of an nt is desirable. lp loop transparency. in case analog loop-backs are closed with c/i = arl or bit sc in the loop-back register, the user may determine with this bit, whether the data is forwarded to the s/t-interface outputs (transparent) or not. the default setting depends on the operational mode. te/lt-t modes:0 =non transparent 1 =transparent ext. loop lt-s mode:0 =transparent 1 = non transparent in lt-s by default transparency is selected (lp=0), for lt-t and te non- transparency is standard (lp=0).
psb 2115 psf 2115 appendix semiconductor group 302 11.97 sqm selects the sq channel handling mode. in non-auto mode operation, the ipac issues s1 and q messages in the iom-2 monitor channel only after a change has been detected. the s2 channel is not available in non-auto mode. in transparent mode monitor messages containing the s1, s2 and q data are forwarded to iom-2 once per multiframe (5 ms), regardless of the data content. programming the sqm bit is only relevant if multiframing on s/t is selected (bit mfd configuration register). see also mon-1 and mon-2 monitor messages. rcve receive code violation errors. the user has the option to issue a c/i error code (cvr) everytime an illegal code violation has been detected. the implementation is realized according to ansi t1.605. c/w/p this bit has three different meanings depending on the operational mode of the ipac: in lt-s mode the s/t bus configuration is programmed. for point-to-point or extended passive bus configurations an adaptive timing recovery must be chosen. this allows the ipac to adapt to cable length dependent round trip delays. in lt-t mode the user selects the amount of permissible wander before a c/i code warning will be issued by the ipac. the warning may be sent after 25 m s (c/w/p=1) or 50 m s (c/w/p=0). note: the c/i indication slip which will be issued if the specified wander has been exceeded, is only a warning. data has not been lost at this stage. in te mode this bit is not used
psb 2115 psf 2115 appendix semiconductor group 303 11.97 mon-8 loop-back register the loop-back register controls all analog (s/t-interface) and digital (iom-2 interface) loop-backs. additionally the wake-up mode can be programmed. value after reset: 02 h . address: 2h ast sb1 sb2 sc ib1 ib2 1 ib12 rd/wr ast asynchronous timing. defines the length of the timing signal (du = 0) on iom-2. if synchronous timing is selected (ast=0) the ipac in lt-s mode will issue the timing request only in the c/i channel of the selected timeslot (c/i = 0000b). this mode is useful for applications where iom-2 clock signals are not switched off. here the ipac can pass the te initiated activation via c/i = 0000b in iom-2 cannel 0 upstream to the u-interface device. in case iom-2 clocks can be turned off during power-down or the lt-s ipac is pin-strapped to a different timeslot than the u-interface device, synchronous timing signals will not succeed in waking the u-interface device. under these circumstances asynchronous timing needs to be programmed (ast=1). here the line du is set to zero for a period long enough to wake any u- interface device, independent of timeslot or clocks. typically asynchronous timing is programmed for intelligent nt applications (ipac pin-strapped to lt-s with nt state machine). note: the asynchronous timing option is restricted to configurations with the ipac operating with nt state machine (i.e., lt-s pin-strap & fsmm bit programmed). sb1 closes the loop-back for b1 channel data close to the activated s/t- interface (i.e., loop-back iom-2 data) in lt-s mode. sb2 closes the loop-back for b2 channel data close to the activated s/t- interface (i.e., loop-back iom-2 data) in lt-s mode. sc close complete analog loop-back (2b+d) close to the s/t-interface. corresponds to c/i = arl. transparency is optional. operational in lt-s mode. ib1 close the loop-back for b1 channel close to the iom-2 interface (i.e. loop- back s/t data). transparent. ib1 and ib2 may be closed simultaneously.
psb 2115 psf 2115 appendix semiconductor group 304 11.97 ib2 close the loop-back for b2 channel close to the iom-2 interface (i.e. loop- back s/t data). transparent. ib1 and ib2 may be closed simultaneously. ib12 exchange b1 and b2 channels. ib1 and/or ib2 need to be programmed also. loops back data received from s/t and interchanges it, i.e. b1 input (s/t) ? b2 output (s/t) and vice versa.
psb 2115 psf 2115 appendix semiconductor group 305 11.97 mon-8 iom -2 channel register the features accessible via the iom-2 channel register allow to implement simple switching functions. these make the ipac the ideal device for intelligent nt applications. please refer also to the section iom-2 channel switching. two types of manipulation are possible: the transfer from the pin-strapped iom-2 channel (0 7) into iom-2 channel 0 and a change of the b1, b2 and d data source. value after reset: 00 h address: 3h b1l b1d b2l b2d dl 0 cil cih rd/wr b1l transfers the b1 channel from its pin-strapped location into iom-2 channel 0. b1d direction of the b1 channel. the normal direction (input/output) of du and dd depends on the mode and is shown in table 30 below. by setting b1d the direction for the b1 data channel is inverted. b2l transfers the b2 channel from its pin-strapped location into iom-2 channel 0. b2d direction of the b2 channel. the normal direction (input/output) of du and dd depends on the mode and is shown in table 30 below. by setting b2d the direction for the b2 data channel is inverted. dl transfers the d-channel from its pin-strapped location into iom-2 channel 0. cil c/i channel location: the timeslot position of the c/i channel can be programmed as normal (lt-s and lt-t modes: pin strapped iom-2 channel, te mode: iom-2 channel 0) or fixed to iom-2 channel 0 (regardless the selected mode). cih c/i channel handling: normally the c/i commands are read from the pin- strapped iom-2 channel. with this bit programmed c/i channel access is only possible via the sm/ci register. table 30 du/dd direction mode0 mode1 /eaw transmit data on s receive data on s te-mode 0 eaw du (input) dd (output) lt-t mode 1 1 du (input) dd (output) lt-s mode 1 0 dd (input) du (output)
psb 2115 psf 2115 appendix semiconductor group 306 11.97 mon-8 sm/ci register this multifeature register allows access to the c/i channel and controls the monitor time- out. value after reset: x0 h (x contains the c/i code) address: 4h ci3 ci2 ci1 ci0 tod 0 0 0 rd/wr c/i allows the user to access the c/i channel if the cih bit in the iom-2 register has been set previously. if the cih bit was not programmed the content of the ci bits will be ignored and the ipac will access the iom-2 c/i channel. when reading the sm/ci register these bits will always return the current c/i indication (independent of cih bit). tod time out disable. allows the user to disable the monitor time-out function. refer to section monitor timeout for details.
psb 2115 psf 2115 appendix semiconductor group 307 11.97 7.2 register address arrangement 76543210 b-channel registers rfifob b-channel receive fifo rd (00-1f/40-5f) xfifob b-channel transmit fifo wr (00-1f/40-5f) istab rme rpf 0 xpr 0 0 0 0 rd (20/60) maskb rme rpf 0 xpr 0 0 0 0 wr (20/60) starb xdov xfw xrep rfr rli cec xac afi rd (21/61) cmdrb rmc rhr xrep 0 xtf 0 xme xres wr (21/61) modeb mds1 mds0 adm cft rac 0 0 tlp rd/wr (22/62) reserved rd/wr (23/63) exirb xmr xdu exe 0 rfo 0 rfs 0 0 rd (24/64) rbclb rbc7 rbc0 rd (25/65) rah1 rah1 0 0 wr (26/66) rah2 rah2 0 0 wr (27/67) rstab vfr rdo crc rab ha1 ha0 c/r la rd (27/67) ral1 ral1 rd/wr (28/68) ral2 ral2 wr (29/69) rhcrb rhcr rd (29/69) xbcl xbc7 xbc0 wr (2a/6a) reserved rd/wr (2b/6b) ccr2 soc 0 xcs0 rcs0 txd 0 rie div rd/wr (2c/6c)
psb 2115 psf 2115 appendix semiconductor group 308 11.97 rbchb dma 0 0 ov rbc11 rbc8 rd (2d/6d) xbch dma 0 0 xc xbc11 xbc8 wr (2d/6d) reserved rd (2e/6e) rlcr rc 0 rl5 rl0 wr (2e/6e) ccr1 pu sc 0 0 itf 0 1 0 rd/wr (2f/6f) tsax tsnx xcs2 xcs1 wr (30/70) tsar tsnr rcs2 rcs1 wr (31/71) xccr xbc7 xbc0 wr (32/72) rccr rbc7 rbc0 wr (33/73) d-channel registers rfifod d-channel receive fifo rd (80 - 9f) xfifod d-channel transmit fifo wr (80 - 9f) istad rme rpf rsc xpr tin cic sin tin2 rd (a0) maskd rme rpf rsc xpr tin cic sin tin2 wr (a0) stard xdov xfw xrnr rrnr mbr mac1 -- mac0 rd (a1) cmdrd rmc rres rnr sti xtf xif xme xres wr (a1) moded mds2 mds1 mds0 tmd rac dim2 dim1 dim0 rd/wr (a2) timr1 cnt value rd/wr (a3) exird xmr xdu pce rfo sov mos saw wov rd (a4) xad1 wr (a4) xad2 wr (a5) rbcld rbc7 rbc0 rd (a5) sapr rd (a6) 76543210
psb 2115 psf 2115 appendix semiconductor group 309 11.97 sap1 sapi1 cri 0 wr (a6) sap2 sapi2 mcs 0 wr (a7) rstad rda rdo crc rab sa1 sa0 c/r ta rd (a7) tei1 tei1 ea wr (a8) tei2 tei2 ea wr (a9) rhcrd rd (a9) rbchd xac -- -- ov rbc11 rbc8 rd (aa) star2 0 0 0 0 wfa 0 trec sdet rd (ab) spcr spu sdl spm tlp c1c1 c1c0 c2c1 c2c0 rd/wr (b0) cir0 0 bas codr0 cic0 cic1 rd (b1) cix0 rss bac codx0 1 1 wr (b1) mor0 rd (b2) mox0 wr (b2) cir1 codr1 mr1 mx1 rd (b3) cix1 codx1 1 1 wr (b3) mor1 rd (b4) mox1 wr (b4) c1r rd/wr (b5) c2r rd/wr (b6) stcr tsf tba2 tba1 tba0 st1 st0 sc1 sc0 wr (b7) b1cr rd (b7) b2cr rd (b8) adf1 wtc1 wtc2 ci1e 0 csel2 csel1 csel0 itf wr (b8) 76543210
psb 2115 psf 2115 appendix semiconductor group 310 11.97 reserved10000000 rd/wr (b9) mosr mdr1 mer1 mda1 mab1 mdr0 mer0 mda0 mab0 rd (ba) mocr mre1 mrc1 mie1 mxc1 mre0 mrc0 mie0 mxc0 wr (ba) general ipac registers conf amp cfs tem pds idh sgo ods iof rd/wr (c0) ista int1 int0 icd exd ica exa icb exb rd (c1) mask int1 int0 icd exd ica exa icb exb wr (c1) id rd (c2) acfg od7 od6 od5 od4 od3 od2 el1 el0 rd/wr (c3) aoe oe7 oe6 oe5 oe4 oe3 oe2 0 0 rd/wr (c4) arx ar7 ar6 ar5 ar4 ar3 ar2 0 0 rd (c5) atx at7 at6 at5 at4 at3 at2 0 0 wr (c5) pita1 ena dudd 0 tnrx rd/wr (c6) pita2 ena dudd 0 tnrx rd/wr (c7) pota1 ena dudd 0 tntx rd/wr (c8) pota2 ena dudd sres tntx rd/wr (c9) pcfg dps acl led pld fbs csl2 csl1 csl0 rd/wr (ca) scfg pri txd tlen tslt rd/wr (cb) timr2 tmd 0 cnt rd/wr (cc) 76543210
psb 2115 psf 2115 appendix semiconductor group 311 11.97 7.3 state diagrams te/lt-t modes state diagram figure 119 state transition diagram in te/lt-t modes notes: 1. see state diagram for unconditional transitions for details 2. x = tm1 or tm 2 or res or arl x = tm1 & tm2 & res & arl 3. ar p = ar8 or ar10 itd09694 f3 power down dc di i0 i0 i0 i0 tim dis f3 power up i1 i0 ar pu f4 pend. act. f5/8 unsynchron rsy x i0 f6 synchronized ar i2 i3 i0 i0 ar dr f3 pend. deact. f7 activated reset/loop cmd. ind. state pu di tim di i0 ar i0 tim tim tim rst di i2 i0 i0 di i3 i4 i4 i2 i4 i2 in out s/t i4 i3 f7 slip detected it * tmi tmi test mode i di tim tmi any state p p ar 0.5 ms slip i0 res+arl ai slip p 1) x iom p r x i r i 5) 3) 2) i2 2) x x 2) x 2) 4) 2) any state &i4 i4 & i2 i4 & i2 i0 4. ai p = ai8 or ai10 5. tmi = tm1 or tm2 b- and d-channel on sx transparent if the command equals to ar8 or ar10.
psb 2115 psf 2115 appendix semiconductor group 312 11.97 figure 120 state diagram of the te/lt-t modes, unconditional transitions note: 1. in state loop a activated i3 is the internal signal, the external signal is i0. itd09695 i0 * res reset i3 * arl arl loop a arl cmd. ind. state tim arl i3 rst arl di in out s/t tim di tim res res i3 1) res f3 power up any state i3 * ail rsy res iom i x i r di activated loop a r state any closed f3 power down f3 power down
psb 2115 psf 2115 appendix semiconductor group 313 11.97 lt-s mode state diagram figure 121 state transition diagram in lt-s mode notes: 1. ard stands for ar or arl 2. tmi = tm1 or tm2 itd09696 i4 i3 i3 i2 g2 pend. act. i0 i0 g1 deactivated wait for dr di dr * i0 i0 i0 dr tim g4 pend. deact. i2 i3 di dc ar ai reset tim res * i0 test mode i tim tmi * it dr rst any state dc res dr dc tmi dr dr dr dr i0 or 32 ms dc i3 ard 1) 1) ard ard 1) cmd. ind. state in out iom s/t dc ard dc ard g3 activated ard dc g2 lost framing i3 i3 r i x i r rsy state any 2) i0
psb 2115 psf 2115 appendix semiconductor group 314 11.97 intelligent nt mode state diagram figure 122 nt mode state diagram itd09697 g2 wait for aid i2 i3 i3 i2 g2 pend. act. i0 * g1 i0 detected i0 i0 g1 deactivated g4 wait for dr di dr * i0 i0 i0 dr tim g4 pend. deact. g3 activated i4 i3 i3 i2 g2 lost framing rsy di dc ar dc ar ard ai ard ai aid aid ard s/t u g3 lost framing i2 * rsy rsy reset tim res * i0 test mode i tim tmi * it dr rst any state dc res dr dc tmi dr dr dr dr dr i0 or 32 ms dc ard i3 ard 1) 1) ard 1) 1) ard ard 1) cmd. ind. state in out iom s/t i3 ard 1) aid 2) rsy 2) aid i3 i3 ard 1) aid 2) dr rsy , rsy i x i r r any state & & i0 notes: 1. ard = ar or arl 2. aid = ai or ail
psb 2115 psf 2115 appendix semiconductor group 315 11.97 7.4 c/i codes 1) in lt-t mode only code lt-s nt te/lt-t in out in out in out 0000dr tim dr tim tim dr 0001res C res C res res 0010tm1 C tm1 C tm1 tm1 0011tm2 C tm2 C tm2 tm2 slip 1) 0100C rsy rsy rsy C rsy 0101C C C C C C 0110C C C C C C 0111C C C C C pu 1000ar ar ar ar ar8 ar 1001C C C C ar10 C 1010arl C arl C arl arl 1011C cvr C cvr C cvr 1100C ai ai ai C ai8 1101C C C C C ai10 1110C C ail C C ail 1111dc di dc di di dc ai activation indication ai8 activation indication with high priority ai10 activation indication with low priority ail activation indication loop ar activation request ar8 activation request with high priority ar10 activation request with low priority arl activation request loop cvr code violation received dc deactivation confirmation di deactivation indication dr deactivation request pu power-up res reset rsy resynchronizing slip iom frame slip tim timer tim1 test mode 1 (2-khz signal) tm2 test mode 2 (96-khz signal)
semiconductor group 316 11.97 psb 2115 psf 2115 index a abort 50, 64 activation 52, 88, 92, 188, 191 activation led 93 arcofi 65 auto mode 43, 50 auxiliary interface 143 b bac-bit 55, 61 back to back frames 177 block diagram 26 c c/i-channel 57, 139 channel switching 65 cic interrupt 170 clock mode 5 36 continuous transmission (dma mode) 40 d data encoding 38 data path switching 68 data underrun 50 d-channel access 54 d-channel collision 51 deactivation 53, 92, 188, 191 dma mode 100, 104, 143, 178, 181 e e-bit 56 exchange awake 94 external awake 94 f features 15 fifo structure 108 fsc/bcl generation 150 functional description 32 h hscx-te 32, 36 i i frames 50 i.430 55C57, 69 i/o lines 143 icc 59 iec-q te 59 indirect address mode 99 intelligent nt 59, 65 interrupt input 144 interrupt mode 100, 174, 180 interrupt output 143 iom-2 interface 113 isac-s te 32 l lapb 42 lapd 42 led output 93, 144 level detection 88 logic symbol 16 loopback 66, 96 lt-s mode 68, 122 lt-t mode 59, 68, 121 m message transfer modes b-channel 32 d-channel 42 microprocessor interface 98 mon-1 137 mon-2 137 mon-8 65, 72, 301 monitor channel 129 monitor procedure timeout 136 mos interrupt 171 multiline applications 151 multiplexed mode 98
semiconductor group 317 11.97 psb 2115 psf 2115 index n non-auto mode b-channel 32 d-channel 43 non-multiplexed mode 98 nrz 38 nrzi 38 nt state machine 59 o open drain 117 output driver 117 overview 14 p pcm interface 146 phase deviation 84 pin configuration 17 pin descriptions 18 point to multipoint 59 point-to-point protocols 42 power down 88C89 pre-filter compensation 84 priority class 57 priority mechanism 56 protection circuitry 84 pulse mask 83 push pull 117 q q-bit 72 r receive data b-channel 34, 180 d-channel 45, 185 receive length check 40 s s/q-channel 137 s/t-interface coding 69 s/t-interface multiframing 71 s-bus 54 serial interface 36 software reset 112 state diagrams 192 stop/go bit 51, 55, 61, 142 strobe signal 116 subscriber awake 94 system integration 27 t te mode 55, 68, 119 test mode 96 test signals 97 tic bus 141 tic-bus 54 timer 110 timeslot assignment b-channel 36 pcm interface 152 transformer 82 transmit data b-channel 35, 174 d-channel 49, 183 transmitter disable 89 transparent modes b-channel 33, 39 d-channel 44, 50 w watchdog 94 window size 51


▲Up To Search▲   

 
Price & Availability of PSB2115F

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X